Skip to content

Commit

Permalink
Merge pull request filamentphp#14944 from simonmilz/3.x
Browse files Browse the repository at this point in the history
fix: use app() to create a new instance of the password reset notific…
  • Loading branch information
danharrin authored Dec 1, 2024
2 parents f76b431 + 2ddcba2 commit 8069915
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 8069915

Please sign in to comment.