© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Abi

Adding a filter on a RelationManager Table with `relationship` doesn't work

On a RelationManger class, I have added a
SelectFilter
SelectFilter
to the table and using the
relationship
relationship
method to fill the Select Filter. But it doesn't seem to fill the Select.

 Tables\Filters\SelectFilter::make('Option 1')
      ->relationship('option1', 'key')
      ->attribute('option_1_value'),
 Tables\Filters\SelectFilter::make('Option 1')
      ->relationship('option1', 'key')
      ->attribute('option_1_value'),


The
option1
option1
is a
BelongsTo
BelongsTo
relationship added on the model.
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

Table filter with a relationship like so?
FilamentFFilament / ❓┊help
3y ago
Adding a SelectFilter with relationship breaks table ordering
FilamentFFilament / ❓┊help
3y ago
HasMany Table Relationship pivot/group RelationManager
FilamentFFilament / ❓┊help
2y ago
->relationship() with hasOneThrough() relation doesn't work anymore
FilamentFFilament / ❓┊help
3y ago