set default active class blade code example Example: laravel bootstrap nav active {{ Route::currentRouteNamed('about') ? 'active' : '' }}