add active navigation class based on url in laravel 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' : '' }}">