F
Filament10mo ago
Sísifo

Filter in table with a polymorphic Column

I would like to have a filter in a polymorphic model column, however it doesn't work. I don't know why. The code:
->filters([
Tables\Filters\SelectFilter::make('specifiable_type')
->label('Type')
->options(['App\Models\SpecChoice', 'App\Models\SpecNumber'])
])
->filters([
Tables\Filters\SelectFilter::make('specifiable_type')
->label('Type')
->options(['App\Models\SpecChoice', 'App\Models\SpecNumber'])
])
The table works, however when I apply the filter no row appear. What is the problem?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server