Skip to content

Commit

Permalink
fix: use app() to create a new instance of the password reset notific…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
simonmilz committed Nov 30, 2024
1 parent 1fa67c6 commit 2ddcba2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function (CanResetPassword $user, string $token): void {
throw new Exception("Model [{$userClass}] does not have a [notify()] method.");
}

$notification = new ResetPasswordNotification($token);
$notification = app(ResetPasswordNotification::class, ['token' => $token]);
$notification->url = Filament::getResetPasswordUrl($token, $user);

$user->notify($notification);
Expand Down

0 comments on commit 2ddcba2

Please sign in to comment.