request active class in laravel code example Example: laravel sidebar menu active {{ request()->routeIs('news.*') ? 'active' : '' }}