leaf
leaf copied to clipboard
Non-existant methods in Request
The documentation states:
https://leafphp.dev/modules/http/v/2/request.html#resource-uri
You can get the HTTP request’s root URI and resource URI with the request object’s getRootUri() and getResourceUri() methods:
//Get root URI
$rootUri = request()->getRootUri();
//Get resource URI
$resourceUri = request()->getResourceUri();
But there's none of these methods in the Request class.