leaf icon indicating copy to clipboard operation
leaf copied to clipboard

Non-existant methods in Request

Open swimitup opened this issue 3 years ago • 0 comments

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.

swimitup avatar Sep 29 '22 22:09 swimitup