Can you explain a bit about why, and where you'd need to do this? There are ways to get that but it depends... so need a bit more info. Do you need to get it from a request object, or ?
Aug 18, 2018
3
Level 3
get path by route name
Hi, i like to name my routes and then in view get urls by calling route('route.name') but this function is giving me whole url and i would like only to get the path like:
Using function: route('foo.bar')
I want to get: foo/bar
instead: http://acme.io/foo/bar
hope you get my point
Please or to participate in this conversation.