only one url as active laravel menu code example
Example 1: laravel sidebar menu active
{{ request()->routeIs('news.*') ? 'active' : '' }}
Example 2: laravel bootstrap nav active
{{ Route::currentRouteNamed('about') ? 'active' : '' }}
Example 3: set nav link active on the basis of route laravel 8
<li class="{{ (request()->is('admin/cities*')) ? 'active' : '' }}">