I'm trying to get the current route name to be able to do some logic in the view. I need to retrieve this inside the view, not in the controller. For example, in laravel if I wanted to test for a route I would use Request::is('admin/dashboard')
or Route::current()->getName()
.
I've googled many times but I haven't found this answer anywhere.