public function createUrlFromUri($uri)
    {
        $uri = ltrim($uri, '/');

        return empty($this->baseUrl)
            ? $this->app[\Illuminate\Contracts\Routing\UrlGenerator::class]->to($uri)
            : $this->baseUrl.$uri;
    }
public function createUrlFromUri($uri)
    {
        $uri = ltrim($uri, '/');

        return empty($this->baseUrl)
            ? $this->app[\Illuminate\Contracts\Routing\UrlGenerator::class]->to($uri)
            : $this->baseUrl.$uri;
    }
public function createUrlFromUri ( $ uri ) { $ uri = ltrim ( $ uri , '/' ) ; return empty ( $ this -> baseUrl ) ? $ this -> app [ \ Illuminate \ Contracts \ Routing \ UrlGenerator :: class ] -> to ( $ uri ) : $ this -> baseUrl . $ uri ; }
Create an url from the uri.

@param  string  $uri

@return string
Create an url from the uri .