Put back site_id middleware
This commit is contained in:
@@ -20,15 +20,13 @@ class ResetPassword extends ResetPasswordNotification implements ShouldQueue
|
||||
*/
|
||||
public function toMail($notifiable): MailMessage
|
||||
{
|
||||
$site = Site::findOrFail($notifiable->site_id);
|
||||
|
||||
if (static::$toMailCallback) {
|
||||
return call_user_func(static::$toMailCallback, $notifiable, $this->token);
|
||||
}
|
||||
|
||||
return (new MailMessage)
|
||||
->markdown('email.user.passwordreset',[
|
||||
'site'=>$site,
|
||||
'site'=>$notifiable->site,
|
||||
'user'=>$notifiable,
|
||||
'reset_link'=>route('password.reset',$this->token,true),
|
||||
]);
|
||||
|
Reference in New Issue
Block a user