Skip to content

Commit 2380191

Browse files
mhortulanusclaude
andcommitted
fix: guard against missing or invalid user model config in RecordUserLogin job
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6e2093d commit 2380191

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Jobs/RecordUserLogin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public function __construct(
2525
public function handle(): void
2626
{
2727
$userModel = config('users.eloquent.user.model');
28+
29+
if (! $userModel || ! class_exists($userModel)) {
30+
return;
31+
}
32+
2833
$user = $userModel::find($this->userId);
2934

3035
if (! $user) {

0 commit comments

Comments
 (0)