UpdatedUserInfo.php 599 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Events;
  3. use App\Models\User\UserModel;
  4. use Illuminate\Foundation\Events\Dispatchable;
  5. use Illuminate\Broadcasting\InteractsWithSockets;
  6. use Illuminate\Support\Facades\Config;
  7. /**
  8. * 用户信息更新事件
  9. */
  10. class UpdatedUserInfo
  11. {
  12. use Dispatchable;
  13. use InteractsWithSockets;
  14. public $model;
  15. public $stackGlobalConfig;
  16. /**
  17. * Create a new event instance.
  18. *
  19. * @param UserModel $model
  20. */
  21. public function __construct(UserModel $model)
  22. {
  23. $this->model = $model;
  24. $this->stackGlobalConfig = Config::all();
  25. }
  26. }