src/Http/RouteCollectionUrlGenerator.php
public function route($name, $parameters = [])
    {
        $path = $this->routes->getPath($name, $parameters);
        $path = ltrim($path, '/');

        return $this->baseUrl.'/'.$path;
    }
public function route($name, $parameters = [])
    {
        $path = $this->routes->getPath($name, $parameters);
        $path = ltrim($path, '/');

        return $this->baseUrl.'/'.$path;
    }
public function route ( $ name , $ parameters = [ ] ) { $ path = $ this -> routes -> getPath ( $ name , $ parameters ) ; $ path = ltrim ( $ path , '/' ) ; return $ this -> baseUrl . '/' . $ path ; }
Generate a URL to a named route.

@param string $name
@param array $parameters
@return string
Generate a URL to a named route .