© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
dashcharger

[QueryBuilder] How can you filter a multi relationship?

Is it possible to filter multiple relationships with the new query builder?
We would like to filter something like this: users->orders(), and from orders we would like to filter on the products within the orders (if that makes sense). Products looks something like this: products()->categories. So ideal, we would like to filter the product categories as well.

It will probably work fine when adding this directly onto the OrderResource or ProductResource, but our team would like to use users a starting point, so they can connect multiple relationships (non-related to orders) at once.

Or should you use the Filters for this?

Thanks!
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

Select filter in QueryBuilder for nested relationship
FilamentFFilament / ❓┊help
3mo ago
QueryBuilder Filter returns nothing
FilamentFFilament / ❓┊help
3y ago
QueryBuilder with an relationship->counts()
FilamentFFilament / ❓┊help
2y ago
Issue with QueryBuilder Table Filter
FilamentFFilament / ❓┊help
8mo ago