how to add active class on different page in laravel code example Example: laravel bootstrap nav active {{ Route::currentRouteNamed('about') ? 'active' : '' }}