| 1 | <?php |
||
| 24 | class TicketMessageEvent |
||
| 25 | { |
||
| 26 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
| 27 | |||
| 28 | public $ticket; |
||
| 29 | public $message; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Create a new event instance. |
||
| 33 | */ |
||
| 34 | public function __construct(Ticket $ticket, TicketMessage $ticketMessage) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the channels the event should broadcast on. |
||
| 42 | * |
||
| 43 | * @return \Illuminate\Broadcasting\Channel|array |
||
| 44 | */ |
||
| 45 | public function broadcastOn() |
||
| 49 | } |
||
| 50 |