diff --git a/app/Listeners/SendLoginLink.php b/app/Listeners/SendLoginLink.php index 8732fd8..bd9d3b0 100644 --- a/app/Listeners/SendLoginLink.php +++ b/app/Listeners/SendLoginLink.php @@ -21,6 +21,7 @@ public function __construct(private readonly User $user) */ public function handle(RequestedLogin $event): void { - $event->token->notify(new UserRequestedLogin($this->user->whereEmail($event->token->email))); + $user = $this->user->whereEmail($event->token->email); + $user->notify(new UserRequestedLogin($user)); } }