is_expired = true; $attempt->save(); } catch (QueryException $exception){ throw new MalformedRequestException($exception->getMessage()); } } }