Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Events;
  4.  
  5. use Illuminate\Broadcasting\Channel;
  6. use Illuminate\Queue\SerializesModels;
  7. use Illuminate\Broadcasting\PrivateChannel;
  8. use Illuminate\Broadcasting\PresenceChannel;
  9. use Illuminate\Foundation\Events\Dispatchable;
  10. use Illuminate\Broadcasting\InteractsWithSockets;
  11. use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
  12.  
  13. class Accueil
  14. {
  15. use Dispatchable, InteractsWithSockets, SerializesModels;
  16.  
  17. /**
  18. * Create a new event instance.
  19. *
  20. * @return void
  21. */
  22. public function __construct()
  23. {
  24. //
  25. }
  26.  
  27. /**
  28. * Get the channels the event should broadcast on.
  29. *
  30. * @return \Illuminate\Broadcasting\Channel|array
  31. */
  32. public function broadcastOn()
  33. {
  34. return new PrivateChannel('channel-name');
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement