assign active class in sidebar for current page link in aravel code example Example: laravel bootstrap nav active {{ Route::currentRouteNamed('about') ? 'active' : '' }}