laravel set active link to route code example Example: laravel sidebar menu active {{ request()->routeIs('news.*') ? 'active' : '' }}