1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace App\Events;
- use Illuminate\Queue\SerializesModels;
- use Illuminate\Broadcasting\PrivateChannel;
- use Illuminate\Foundation\Events\Dispatchable;
- use Illuminate\Broadcasting\InteractsWithSockets;
- /**
- * 补全信息完成
- * Class CompletedInfo
- * @package App\Events
- */
- class CompletedInfo
- {
- use Dispatchable;
- use InteractsWithSockets;
- use SerializesModels;
- /** @var int */
- public $is_remind_uid;
- /**
- * Create a new event instance.
- *
- * @param int $is_remind_uid
- */
- public function __construct(int $is_remind_uid)
- {
- $this->is_remind_uid = $is_remind_uid;
- }
- /**
- * Get the channels the event should broadcast on.
- *
- * @return \Illuminate\Broadcasting\Channel|array
- */
- public function broadcastOn()
- {
- return new PrivateChannel('channel-name');
- }
- }
|