NETBien.backend/stubs/event.stub
2025-06-01 12:32:11 -06:00

45 lines
1.0 KiB
Plaintext

<?php namespace {{ namespace }};
/**
* @copyright (c) 2025 Notsoweb Software (https://notsoweb.com) - All Rights Reserved
*/
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
/**
* Descripción
*
* @author Moisés Cortés C. <moises.cortes@notsoweb.com>
*
* @version 1.0.0
*/
class {{ class }}
{
use Dispatchable, InteractsWithSockets, SerializesModels;
/**
* Crear instancia del evento
*/
public function __construct()
{
//
}
/**
* Obtener los canales a los que se debe transmitir el evento
*
* @return array<int, \Illuminate\Broadcasting\Channel>
*/
public function broadcastOn(): array
{
return [
new PrivateChannel('channel-name'),
];
}
}