protected function parseUrl($url, $parameters)
    {
        // If provided $url is a route name...
        if ($this->route->has($url)) {
            $url = $this->url->route($url, $parameters);
        } else {
            $url = $this->url->to($url, $parameters);
        }

        return $url;
    }
protected function parseUrl($url, $parameters)
    {
        // If provided $url is a route name...
        if ($this->route->has($url)) {
            $url = $this->url->route($url, $parameters);
        } else {
            $url = $this->url->to($url, $parameters);
        }

        return $url;
    }
protected function parseUrl ( $ url , $ parameters ) { // If provided $url is a route name... if ( $ this -> route -> has ( $ url ) ) { $ url = $ this -> url -> route ( $ url , $ parameters ) ; } else { $ url = $ this -> url -> to ( $ url , $ parameters ) ; } return $ url ; }
Return a named route if it exists.

@param string $url
@param array  $parameters

@return string
Return a named route if it exists .