海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
891 B

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