src/Concerns/MakesHttpRequests.php
protected function prepareUrlForRequest($uri)
    {
        if (Str::startsWith($uri, '/')) {
            $uri = substr($uri, 1);
        }

        if (! Str::startsWith($uri, 'http')) {
            $uri = ($this->baseUrl ?? config('app.url')) . '/' . $uri;
        }

        return trim($uri, '/');
    }
protected function prepareUrlForRequest($uri)
    {
        if (Str::startsWith($uri, '/')) {
            $uri = substr($uri, 1);
        }

        if (! Str::startsWith($uri, 'http')) {
            $uri = ($this->baseUrl ?? config('app.url')) . '/' . $uri;
        }

        return trim($uri, '/');
    }
protected function prepareUrlForRequest ( $ uri ) { if ( Str :: startsWith ( $ uri , '/' ) ) { $ uri = substr ( $ uri , 1 ) ; } if ( ! Str :: startsWith ( $ uri , 'http' ) ) { $ uri = ( $ this -> baseUrl ?? config ( 'app.url' ) ) . '/' . $ uri ; } return trim ( $ uri , '/' ) ; }
Turn the given URI into a fully qualified URL.

@param  string  $uri
@return string
Turn the given URI into a fully qualified URL .