[5.2] Get current route name in Blade templates
This seems to be a simple question but I can't figure out how to do it.
I need to know what is the current route name in a Blade template to be able to do something like:
@if ($currentRoute == 'homepage')
Im using Laravel 5.2
Can someone help me on this?
Thanks in advance!
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!