1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace App\Events;
- use App\Models\User\UserModel;
- use Illuminate\Foundation\Events\Dispatchable;
- use Illuminate\Broadcasting\InteractsWithSockets;
- use Illuminate\Support\Facades\Config;
- /**
- * 用户信息更新事件
- */
- class UpdatedUserInfo
- {
- use Dispatchable;
- use InteractsWithSockets;
- public $model;
- public $stackGlobalConfig;
- /**
- * Create a new event instance.
- *
- * @param UserModel $model
- */
- public function __construct(UserModel $model)
- {
- $this->model = $model;
- $this->stackGlobalConfig = Config::all();
- }
- }
|