protected function getUrl($lowercase = true)
    {
        if ($lowercase) {
            $url = '/' . rtrim(implode('/',
                    array_map('snake_case', explode('/', $this->getArgumentPath(true)))), '/');
            $url = (implode('/', array_map('str_slug', explode('/', $url))));

            return $url;
        }

        return '/' . rtrim(implode('/', explode('/', $this->getArgumentPath(true))), '/');
    }
protected function getUrl($lowercase = true)
    {
        if ($lowercase) {
            $url = '/' . rtrim(implode('/',
                    array_map('snake_case', explode('/', $this->getArgumentPath(true)))), '/');
            $url = (implode('/', array_map('str_slug', explode('/', $url))));

            return $url;
        }

        return '/' . rtrim(implode('/', explode('/', $this->getArgumentPath(true))), '/');
    }
protected function getUrl ( $ lowercase = true ) { if ( $ lowercase ) { $ url = '/' . rtrim ( implode ( '/' , array_map ( 'snake_case' , explode ( '/' , $ this -> getArgumentPath ( true ) ) ) ) , '/' ) ; $ url = ( implode ( '/' , array_map ( 'str_slug' , explode ( '/' , $ url ) ) ) ) ; return $ url ; } return '/' . rtrim ( implode ( '/' , explode ( '/' , $ this -> getArgumentPath ( true ) ) ) , '/' ) ; }
Get the url for the given name

@param bool $lowercase
@return string
Get the url for the given name