LogoutUser.php 594 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Events;
  3. use Illuminate\Queue\SerializesModels;
  4. use Illuminate\Foundation\Events\Dispatchable;
  5. use Illuminate\Broadcasting\InteractsWithSockets;
  6. use Illuminate\Support\Facades\Config;
  7. /**
  8. * 用户注销
  9. */
  10. class LogoutUser
  11. {
  12. use Dispatchable;
  13. use InteractsWithSockets;
  14. use SerializesModels;
  15. public $uid;
  16. public $stackGlobalConfig;
  17. /**
  18. * Create a new event instance.
  19. *
  20. * @param int $uid
  21. */
  22. public function __construct(int $uid)
  23. {
  24. $this->uid = $uid;
  25. $this->stackGlobalConfig = Config::all();
  26. }
  27. }