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) __('validation.custom.invalid-credentials')); 		}  		$user->fireLoginEvent('api');  		return $user->getModelResource(); 	}