Replace $request with Request