laravel 8 get url in request code example Example: get request uri from request laravel 7 Try to use the following: \Request::getRequestUri()