2020-01-30 10:39:25 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Notifications;
|
|
|
|
|
2024-07-22 14:13:54 +00:00
|
|
|
use App\Models\Site;
|
2020-01-30 10:39:25 +00:00
|
|
|
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
|
|
|
|
{
|
2024-07-22 14:13:54 +00:00
|
|
|
use Queueable;
|
2020-01-30 10:39:25 +00:00
|
|
|
|
2024-07-22 14:13:54 +00:00
|
|
|
/**
|
|
|
|
* Build the mail representation of the notification.
|
|
|
|
*
|
|
|
|
* @param mixed $notifiable
|
|
|
|
* @return MailMessage
|
|
|
|
*/
|
|
|
|
public function toMail($notifiable): MailMessage
|
|
|
|
{
|
|
|
|
if (static::$toMailCallback) {
|
|
|
|
return call_user_func(static::$toMailCallback, $notifiable, $this->token);
|
|
|
|
}
|
|
|
|
|
|
|
|
return (new MailMessage)
|
|
|
|
->markdown('email.user.passwordreset',[
|
2024-07-23 05:05:56 +00:00
|
|
|
'site'=>$notifiable->site,
|
2024-07-22 14:13:54 +00:00
|
|
|
'user'=>$notifiable,
|
|
|
|
'reset_link'=>route('password.reset',$this->token,true),
|
|
|
|
]);
|
|
|
|
}
|
2020-01-30 10:39:25 +00:00
|
|
|
}
|