leafsphp / leaf

🍁 The easiest way to create clean, simple but powerful web apps and APIs quickly
https://leafphp.dev
MIT License
1.07k stars 64 forks source link

Non-existant methods in Request #154

Closed swimitup closed 1 year ago

swimitup commented 1 year ago

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.

mychidarko commented 1 year ago

@swimitup this is an oversight on the documentation end which was believed to have already been fixed. Thanks for pointing it out. You can refer to this issue #52