Guest User

Untitled

a guest
Jan 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppEvents;
  4.  
  5. use IlluminateBroadcastingChannel;
  6. use IlluminateQueueSerializesModels;
  7. use IlluminateBroadcastingPrivateChannel;
  8. use IlluminateBroadcastingPresenceChannel;
  9. use IlluminateBroadcastingInteractsWithSockets;
  10. use IlluminateContractsBroadcastingShouldBroadcast;
  11.  
  12. class ShippingStatusUpdated implements ShouldBroadcast
  13. {
  14. //
  15. }
  16.  
  17. /**
  18. * Получить каналы, на которые надо вещать событие.
  19. *
  20. * @return array
  21. */
  22. public function broadcastOn()
  23. {
  24. return new PrivateChannel('order.'.$this->update->order_id);
  25. }
Add Comment
Please, Sign In to add comment