38 lines
852 B
PHP
38 lines
852 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
class ResetPasswordNotification extends Notification
|
|
{
|
|
use Queueable;
|
|
|
|
public $token;
|
|
|
|
public function __construct($token)
|
|
{
|
|
$this->token = $token;
|
|
}
|
|
|
|
public function via($notifiable)
|
|
{
|
|
return ['mail'];
|
|
}
|
|
|
|
public function toMail($notifiable)
|
|
{
|
|
$url = url(route('password.reset', [
|
|
'token' => $this->token,
|
|
'email' => $notifiable->getEmailForPasswordReset(),
|
|
], false));
|
|
|
|
return (new MailMessage)
|
|
->subject('Atur Ulang Kata Sandi - CV Lumintu Energi Persada')
|
|
->view('auth.template-password', ['url' => $url]);
|
|
}
|
|
}
|