How can you remove a single filter from a multiple select?

I'm using:

if ($data['zones'] ?? null) {
                        $zoneNames = Zone::whereIn('id', $data['zones'])->pluck('name', 'id')->toArray();
                        foreach ($zoneNames as $id => $name) {
                            $indicators[] = Indicator::make('Zona: ' . $name);
                        }
                    }


I have tried adding a removeField('"zone_{id}") but it doesn't work

Query string is something like this:

?tableFilters[propertyFilters][zones][0]=1&tableFilters[propertyFilters][zones][1]=2
Was this page helpful?