28 lines
634 B
PHP
28 lines
634 B
PHP
<?php
|
|
namespace App\Notifications;
|
|
|
|
use Illuminate\Notifications\Notification;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class CustomResetPasswordNotification extends Notification
|
|
{
|
|
public $token;
|
|
|
|
public function __construct($token)
|
|
{
|
|
$this->token = $token;
|
|
}
|
|
|
|
public function via($notifiable)
|
|
{
|
|
return ['mail'];
|
|
}
|
|
|
|
public function toMail($notifiable)
|
|
{
|
|
return (new MailMessage)
|
|
->subject(get_phrase('Custom Password Reset Subject'))
|
|
->action('Reset Password', url(config('app.url').route('password.reset', $this->token, false)));
|
|
}
|
|
}
|