Filter does not work automatically

Any filter I use doesn't update the table automatically. Only when I reload the page does the filter activate.

I'm using:

->filters([
SelectFilter::make('cliente_id')
->relationship(
'cliente',
'nome',
fn (Builder $query) => $query->where('empresa_id', Auth::user()->empresa_id)
)
->preload()
->label('Cliente')
->searchable(),

SelectFilter::make('processo_id')
->options(Processo::query()->where('empresa_id', Auth::user()->empresa_id)->pluck('identificacao', 'id'))
->label('Processo')
->searchable(),
], layout: FiltersLayout::AboveContent)
->filtersFormColumns(4)
1.png
Was this page helpful?