AgentUpdatedEvent.php 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace App\Events;
  3. use Illuminate\Broadcasting\Channel;
  4. use Illuminate\Broadcasting\InteractsWithSockets;
  5. use Illuminate\Broadcasting\PresenceChannel;
  6. use Illuminate\Broadcasting\PrivateChannel;
  7. use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
  8. use Illuminate\Foundation\Events\Dispatchable;
  9. use Illuminate\Queue\SerializesModels;
  10. class AgentUpdatedEvent
  11. {
  12. use Dispatchable, InteractsWithSockets, SerializesModels;
  13. /**
  14. * @var string
  15. */
  16. private $uid = '';
  17. /**
  18. * Create a new event instance.
  19. *
  20. * @return void
  21. */
  22. public function __construct($uid)
  23. {
  24. $this->uid = $uid;
  25. }
  26. public function getUid()
  27. {
  28. return $this->uid;
  29. }
  30. /**
  31. * Get the channels the event should broadcast on.
  32. *
  33. * @return \Illuminate\Broadcasting\Channel|array
  34. */
  35. public function broadcastOn()
  36. {
  37. // return new PrivateChannel('channel-name');
  38. }
  39. }