28 lines
776 B
PHP
28 lines
776 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use Illuminate\Auth\Notifications\ResetPassword as BaseResetPassword;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class ResetPassword extends BaseResetPassword
|
|
{
|
|
/**
|
|
* Build the mail representation of the notification.
|
|
*
|
|
* @param mixed $notifiable
|
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
|
*/
|
|
public function toMail($notifiable)
|
|
{
|
|
$url = url(route('password.reset', [
|
|
'token' => $this->token,
|
|
'email' => $notifiable->getEmailForPasswordReset(),
|
|
], false));
|
|
|
|
return (new MailMessage)
|
|
->subject('Reset Password Notification')
|
|
->view('emails.reset-password', ['url' => $url, 'user' => $notifiable]);
|
|
}
|
|
}
|