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