Hi !
I have a navigation menu with childrens. So I need to put a class active to the element when is children are active too. It's easy with Request::is(mybasepath*) but you have to hardcode the path. And I want to use Action routes or Named routes. Of course Request::is() doesn't work for that and Route::currentRouteNamed() or Route::currentRouteUses() only work when giving as parameter the exact 'name route' or 'controller action'. So how should I do to check that ?
Thanks !
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community