Request URL vars
$_SERVER = [
'HTTPS' => true,
'SERVER_NAME' => 'example.com',
'REQUEST_URI' => '/search?offset=10'
];
Request::path();
// Return url path '/search'
Method
Return value
Request::url()
Compiled variable of SCHEME
, HOST
and URI
Request::path()
URI without query string or fragment
Last updated