InnerUserOrderIncEvent.php 992 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 InnerUserOrderIncEvent
  11. {
  12. use Dispatchable, InteractsWithSockets, SerializesModels;
  13. /**
  14. * mongolog
  15. * @var array|mixed
  16. */
  17. private $logs = [];
  18. /**
  19. * Create a new event instance.
  20. *
  21. * @return void
  22. */
  23. public function __construct($logs = [])
  24. {
  25. $this->logs = $logs;
  26. }
  27. public function getLogs()
  28. {
  29. return $this->logs;
  30. }
  31. /**
  32. * Get the channels the event should broadcast on.
  33. *
  34. * @return \Illuminate\Broadcasting\Channel|array
  35. */
  36. public function broadcastOn()
  37. {
  38. // return new PrivateChannel('channel-name');
  39. }
  40. }