SyntaxFix
Write A Post
Hire A Developer
Questions
Here is how one can do it via the global request helper function.
request
{{ request()->segment(1) }}
Note: request() returns the object of the Request class.
request()
Request