© 2026 Hedgehog Software, LLC

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

Releationship doesn't seem to work in Filter

Hey,

On a page with OrderItems I am trying to add a filter with suppliers. An order has a supplier.

So this doesn't work:

Tables\Filters\SelectFilter::make('order.supplier.name')
                    ->relationship('order', 'supplier.name')
Tables\Filters\SelectFilter::make('order.supplier.name')
                    ->relationship('order', 'supplier.name')


It gives me an Alpine error as in the screenshot.

Any suggestions?
Screenshot_2024-01-04_at_22.07.18.png
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 test FAILED `filterTable` doesn't work
FilamentFFilament / ❓┊help
13mo ago
`->in()` validation doesn't seem to work with Select
FilamentFFilament / ❓┊help
6mo ago
Filtering table, second filter doesn't works
FilamentFFilament / ❓┊help
2y ago
requiresConfirmation doesn't seem to work on form submit action
FilamentFFilament / ❓┊help
13mo ago