Styling active route menu item in laravel
You can check if the current route is active just with
request()->routeIs('admin.cities')
Or even sub-routes (like editing, creating, or whatever with
request()->routeIs('admin.cities*')
If you prefer to use the route facade, you still can do that ...
blog.manojbhatta.com.np1 min read