how to active class in laravel use request segment code example Example: laravel bootstrap nav active {{ Route::currentRouteNamed('about') ? 'active' : '' }}