33 lines
961 B
PHP
33 lines
961 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Notifications;
|
||
|
|
||
|
use Illuminate\Bus\Queueable;
|
||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||
|
use Illuminate\Auth\Notifications\ResetPassword as ResetPasswordNotification;
|
||
|
use Illuminate\Notifications\Messages\MailMessage;
|
||
|
|
||
|
class ResetPassword extends ResetPasswordNotification implements ShouldQueue
|
||
|
{
|
||
|
use Queueable;
|
||
|
|
||
|
/**
|
||
|
* Build the mail representation of the notification.
|
||
|
*
|
||
|
* @param mixed $notifiable
|
||
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
||
|
*/
|
||
|
public function toMail($notifiable)
|
||
|
{
|
||
|
if (static::$toMailCallback) {
|
||
|
return call_user_func(static::$toMailCallback, $notifiable, $this->token);
|
||
|
}
|
||
|
|
||
|
return (new MailMessage)
|
||
|
->markdown('email.user.passwordreset',[
|
||
|
'site'=>$notifiable->site,
|
||
|
'user'=>$notifiable,
|
||
|
'reset_link'=>route('password.reset',$this->token,true),
|
||
|
]);
|
||
|
}
|
||
|
}
|