update
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notifications;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
use Illuminate\Notifications\Notification;
|
||||
|
||||
class NotificacionPendiente extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
protected $servicioName;
|
||||
|
||||
public function __construct($servicioName)
|
||||
{
|
||||
$this->servicioName = $servicioName;
|
||||
}
|
||||
|
||||
public function via($notifiable)
|
||||
{
|
||||
return ['mail'];
|
||||
}
|
||||
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
return (new MailMessage)
|
||||
->subject('Licencia asignada para ' . $this->servicioName)
|
||||
->greeting('Tu cuenta de ' . $this->servicioName . ' ha sido asignada')
|
||||
->line('titulo: ' . 'Licencia asignada para ' . $this->servicioName)
|
||||
->line('descripcion: La licencia de ' . $this->servicioName . ' ha sido activada y ahora puedes utilizar tu cuenta sin problemas.')
|
||||
->salutation('¡Gracias por tu atención!');
|
||||
}
|
||||
|
||||
public function toArray($notifiable)
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user