laravel sidebar active code example
Example 1: laravel sidebar menu active
{{ request()->routeIs('news.*') ? 'active' : '' }}
Example 2: laravel bootstrap nav active
{{ Route::currentRouteNamed('about') ? 'active' : '' }}
{{ request()->routeIs('news.*') ? 'active' : '' }}
{{ Route::currentRouteNamed('about') ? 'active' : '' }}