WithdrawalEndEvent.php 726 B

1234567891011121314151617181920212223242526272829303132
  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\Queue\SerializesModels;
  9. //提现成功推送
  10. class WithdrawalEndEvent
  11. {
  12. use InteractsWithSockets, SerializesModels;
  13. public $data;
  14. public function __construct($data)
  15. {
  16. $this->data=$data;
  17. }
  18. /**
  19. * Get the channels the event should broadcast on.
  20. *
  21. * @return \Illuminate\Broadcasting\Channel|array
  22. */
  23. public function broadcastOn()
  24. {
  25. return new PrivateChannel('channel-name');
  26. }
  27. }