name = $name; $this->app = $app; $this->ip = $ip; $this->ipLocation = $ipLocation; $this->browser = $browser; $this->os = $os; $this->status = $status; $this->message = $message; $this->userName = $userName; $this->userId = $userId; $this->loginTime = $loginTime; $this->accessToken = $accessToken; $this->expiresAt = $expiresAt; } /** * 触发事件 */ public function dispatch(): void { Event::emit('adminapi.login.log', $this); } }