TemplateEvent.php 832 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace App\Events;
  3. use Illuminate\Queue\SerializesModels;
  4. use Illuminate\Foundation\Events\Dispatchable;
  5. use Illuminate\Broadcasting\InteractsWithSockets;
  6. use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
  7. /* Auto generate by : https://dashboard.pusher.com/ */
  8. class TemplateEvent
  9. {
  10. use Dispatchable, InteractsWithSockets, SerializesModels;
  11. /**
  12. * Create a new event instance.
  13. *
  14. * @return void
  15. */
  16. public function __construct()
  17. {
  18. //
  19. $this->message = $message;
  20. }
  21. /**
  22. * Get the channels the event should broadcast on.
  23. *
  24. * @return \Illuminate\Broadcasting\Channel|array
  25. */
  26. public function broadcastOn()
  27. {
  28. //
  29. return ['my-channel'];
  30. }
  31. public function broadcastAs()
  32. {
  33. return 'my-event';
  34. }
  35. }