We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5449d64 commit f4ad854Copy full SHA for f4ad854
src/AuthNotifications.php
@@ -38,6 +38,10 @@ public function handleFailed(Failed $event): void
38
if (! in_array($event->guard, config('auth-notifications.listen_to.login_failed.guards'))) {
39
return;
40
}
41
+
42
+ if (empty($event->user)) {
43
+ return;
44
+ }
45
46
$event->user->notify(new LoginFailed($event, request()));
47
0 commit comments