It's quite easy to get the current URL:
Request::url()
This would return something like:
http://localhost/some/or/other/path
However, if I want an easy way to get only:
some/or/other/path
What would I do? Is there a way to do this without parse_url? I.e. Does Laravel have an inherent built-in way to do this?
How about Request::path()
?
$uri = Request::path();