filters

Iam using SelectFilter in resource, while selecting item in a filter the table data not filtering, only when i reload the page that time only filtering, why like this? and my code will be like ->filters([ SelectFilter::make('day_id') ->label('Day') ->options(fn () => WeekDay::whereNot('id', config('constants.weekend_day.sunday'))->get()->pluck('name', 'id')->toArray()) ->query(function (Builder $query, array $data) { if (!empty($data['value'])) { $query->where('day_id', $data['value']); } }), ])
3 Replies
toeknee
toeknee3mo ago
please ensure you are on the very latest version of filament and have run npm run build
Hemanath
Hemanath3mo ago
All done but not working this was version "filament/filament": "3.2",
toeknee
toeknee3mo ago
Exactly what filament version. php artisan filament:about
Want results from more Discord servers?
Add your server