taklimat ulangan+profil
This commit is contained in:
38
app/Notifications/ResetKataLaluanNotification.php
Normal file
38
app/Notifications/ResetKataLaluanNotification.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notifications;
|
||||
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
use Illuminate\Notifications\Notification;
|
||||
|
||||
class ResetKataLaluanNotification extends Notification
|
||||
{
|
||||
public function __construct(private readonly string $token)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<int,string>
|
||||
*/
|
||||
public function via(mixed $notifiable): array
|
||||
{
|
||||
return ['mail'];
|
||||
}
|
||||
|
||||
public function toMail(mixed $notifiable): MailMessage
|
||||
{
|
||||
$url = url(route('password.reset', [
|
||||
'token' => $this->token,
|
||||
'email' => $notifiable->getEmailForPasswordReset(),
|
||||
], false));
|
||||
|
||||
$minit = config('auth.passwords.users.expire');
|
||||
|
||||
return (new MailMessage)
|
||||
->subject('Set Semula Kata Laluan - Kehadiran Taklimat SPR')
|
||||
->line('Kami menerima permintaan untuk set semula kata laluan akaun anda.')
|
||||
->action('Set Semula Kata Laluan', $url)
|
||||
->line("Pautan ini akan tamat tempoh dalam {$minit} minit.")
|
||||
->line('Jika anda tidak membuat permintaan ini, sila abaikan e-mel ini.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user