I have a url : http://localhost:8888/projects/oop/2
http://localhost:8888/projects/oop/2
I want to access the first segment --> projects
projects
I\'ve tried
The double curly brackets are processed via Blade -- not just plain PHP. This syntax basically echos the calculated value.
{{ Request::segment(1) }}