public function login(LoginRequest $request): JsonResource 	{ 		$user = User::includes()->loginLogic($request)->first();  		if (!$user?->postLoginCheck($request)) { 			abort(401, (string) __('auth.invalid-credentials')); 		}  		$user->fireLoginEvent('api');  		return $user->getModelResource(); 	}