public function pathname()
    {
        $uri = $this->uri();

        // Strip the query string from the URI
        $uri = strstr($uri, '?', true) ?: $uri;

        return $uri;
    }
public function pathname()
    {
        $uri = $this->uri();

        // Strip the query string from the URI
        $uri = strstr($uri, '?', true) ?: $uri;

        return $uri;
    }
public function pathname ( ) { $ uri = $ this -> uri ( ) ; // Strip the query string from the URI $ uri = strstr ( $ uri , '?' , true ) ? : $ uri ; return $ uri ; }
Get the request's pathname

@return string
Get the request s pathname