public function url($include_host = false)
    {
        if ($include_host) {
            return $this->url;
        }

        $url = str_replace($this->base, '', rtrim($this->url, '/'));

        return $url ?: '/';
    }
public function url($include_host = false)
    {
        if ($include_host) {
            return $this->url;
        }

        $url = str_replace($this->base, '', rtrim($this->url, '/'));

        return $url ?: '/';
    }
public function url ( $ include_host = false ) { if ( $ include_host ) { return $ this -> url ; } $ url = str_replace ( $ this -> base , '' , rtrim ( $ this -> url , '/' ) ) ; return $ url ? : '/' ; }
Return URL.

@param bool $include_host Include hostname.

@return string
Return URL .