Laravel javascript match route name same or not in sidebar code example Example: laravel sidebar menu active {{ request()->routeIs('news.*') ? 'active' : '' }}