1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace App\Events;
- use Illuminate\Broadcasting\Channel;
- use Illuminate\Broadcasting\InteractsWithSockets;
- use Illuminate\Broadcasting\PresenceChannel;
- use Illuminate\Broadcasting\PrivateChannel;
- use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
- use Illuminate\Queue\SerializesModels;
- //开始提现推送
- class WithdrawalEvent
- {
- use InteractsWithSockets, SerializesModels;
- public $data;
- public function __construct($data)
- {
- $this->data=$data;
- }
- /**
- * Get the channels the event should broadcast on.
- *
- * @return \Illuminate\Broadcasting\Channel|array
- */
- public function broadcastOn()
- {
- return new PrivateChannel('channel-name');
- }
- }
|