© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
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?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filter table with metadata column
FilamentFFilament / ❓┊help
3y ago
Searching in a table on a column using a polymorphic relationship
FilamentFFilament / ❓┊help
3y ago
filter table column relation
FilamentFFilament / ❓┊help
3y ago
Table filter below column?
FilamentFFilament / ❓┊help
3y ago