28 lines
785 B
PHP
28 lines
785 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use Illuminate\Auth\Notifications\ResetPassword as ResetPasswordNotification;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class CustomResetPasswordNotification extends ResetPasswordNotification
|
|
{
|
|
/**
|
|
* Build the mail representation of the notification.
|
|
*/
|
|
public function toMail($notifiable): MailMessage
|
|
{
|
|
$url = url(route('password.reset', [
|
|
'token' => $this->token,
|
|
'email' => $notifiable->getEmailForPasswordReset(),
|
|
], false));
|
|
|
|
return (new MailMessage)
|
|
->subject('Atur Ulang Password - SPK SMKN 2 Jember')
|
|
->view('emails.reset-password', [
|
|
'url' => $url,
|
|
'nama' => $notifiable->nama,
|
|
]);
|
|
}
|
|
}
|