Skip to content

Commit

Permalink
fix breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 18, 2021
1 parent 793721a commit 9b26b62
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Notifications/ResetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ public function via($notifiable)
*/
public function toMail($notifiable)
{
$resetUrl = $this->resetUrl($notifiable);

if (static::$toMailCallback) {
return call_user_func(static::$toMailCallback, $notifiable, $this->token, $resetUrl);
return call_user_func(static::$toMailCallback, $notifiable, $this->token);
}

return $this->buildMailMessage($resetUrl);
return $this->buildMailMessage($this->resetUrl($notifiable));
}

/**
Expand Down

0 comments on commit 9b26b62

Please sign in to comment.