123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace App\Events;
- use Illuminate\Broadcasting\Channel;
- use Illuminate\Queue\SerializesModels;
- use Illuminate\Broadcasting\PrivateChannel;
- use Illuminate\Broadcasting\PresenceChannel;
- use Illuminate\Foundation\Events\Dispatchable;
- use Illuminate\Broadcasting\InteractsWithSockets;
- use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
- use Illuminate\Support\Facades\Config;
- /**
- * 用户加入黑名单
- * Class BlackUser
- * @package App\Events
- */
- class BlackUser
- {
- use Dispatchable;
- use InteractsWithSockets;
- use SerializesModels;
- public $uid;
- public $endtime;
- public $black_type;
- public $stackGlobalConfig;
- /**
- * Create a new event instance.
- *
- * @param int $uid
- * @param int $endtime
- * @param string $black_type
- */
- public function __construct(int $uid, int $endtime, string $black_type)
- {
- $this->uid = $uid;
- $this->endtime = $endtime;
- $this->black_type = $black_type;
- $this->stackGlobalConfig = Config::all();
- }
- }
|