laravel8 blade active menu item in layout code example
Example: set nav link active on the basis of route laravel
<li class="{{ (request()->is('admin/cities*')) ? 'active' : '' }}">
<li class="{{ (request()->is('admin/cities*')) ? 'active' : '' }}">