pdv.backend/stubs/notification.stub
Moisés de Jesús Cortés Castellanos 517628b92d
ADD: Plantilla Holos (#1)
2024-12-13 16:14:50 -06:00

59 lines
1.3 KiB
Plaintext

<?php namespace {{ namespace }};
/**
* @copyright (c) 2024 Notsoweb Software (https://notsoweb.com) - All Rights Reserved
*/
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
/**
* Descripción
*
* @author Moisés Cortés C. <moises.cortes@notsoweb.com>
*
* @version 1.0.0
*/
class {{ class }} extends Notification
{
use Queueable;
/**
* Crear instancia de la notificación
*/
public function __construct()
{
//
}
/**
* 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)
->line('The introduction to the notification.')
->action('Notification Action', url('/'))
->line('Thank you for using our application!');
}
/**
* Obtener la representación en array de la notificación
*/
public function toArray(object $notifiable): array
{
return [
//
];
}
}