59 lines
1.3 KiB
PHP
59 lines
1.3 KiB
PHP
<?php namespace App\Notifications;
|
|
/**
|
|
* @copyright (c) 2025 Notsoweb Software (https://notsoweb.com) - All Rights Reserved
|
|
*/
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
/**
|
|
* Notificación de recuperación de contraseña
|
|
*
|
|
* @author Moisés Cortés C. <moises.cortes@notsoweb.com>
|
|
*
|
|
* @version 1.0.0
|
|
*/
|
|
class ForgotPasswordNotification extends Notification
|
|
{
|
|
use Queueable;
|
|
|
|
/**
|
|
* Create a new notification instance.
|
|
*/
|
|
public function __construct(
|
|
public string $token
|
|
) {}
|
|
|
|
/**
|
|
* Obtener los canales de entrega de la notificación
|
|
*/
|
|
public function via(object $notifiable): array
|
|
{
|
|
return ['mail'];
|
|
}
|
|
|
|
/**
|
|
* Obtener la representación del mensaje de la notificación
|
|
*/
|
|
public function toMail(object $notifiable): MailMessage
|
|
{
|
|
return (new MailMessage)
|
|
->subject(__('auth.forgot.subject'))
|
|
->markdown('user.password-forgot', [
|
|
'user' => $notifiable,
|
|
'token' => $this->token
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Obtener la representación en array de la notificación
|
|
*/
|
|
public function toArray(object $notifiable): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
}
|