| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace App\Events;
- use Illuminate\Queue\SerializesModels;
- use Illuminate\Foundation\Events\Dispatchable;
- use Illuminate\Broadcasting\InteractsWithSockets;
- use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
- /* Auto generate by : https://dashboard.pusher.com/ */
- class TemplateEvent
- {
- use Dispatchable, InteractsWithSockets, SerializesModels;
- /**
- * Create a new event instance.
- *
- * @return void
- */
- public function __construct()
- {
- //
- $this->message = $message;
- }
- /**
- * Get the channels the event should broadcast on.
- *
- * @return \Illuminate\Broadcasting\Channel|array
- */
- public function broadcastOn()
- {
- //
- return ['my-channel'];
- }
-
- public function broadcastAs()
- {
- return 'my-event';
- }
- }
|