[5.2] Get current route name in Blade templates

Posted 2 years ago by SergioGregorutti

Hi all,

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.