© 2026 Hedgehog Software, LLC

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

Is it possible to use a nested relationship in a RelationshipConstraint filter?

I'm trying to create a relationship constraint for a nested belongs to relationship, but it's ignoring
.child
.child
in the relationship name. Is it not possible to use dot notation here?

QueryBuilder\Constraints\RelationshipConstraint::make('parent.child')
                        ->selectable(
                   QueryBuilder\Constraints\RelationshipConstraint\Operators\IsRelatedToOperator::make()
                                ->titleAttribute('name')
                                ->searchable()
                                ->multiple(),
                        ),
QueryBuilder\Constraints\RelationshipConstraint::make('parent.child')
                        ->selectable(
                   QueryBuilder\Constraints\RelationshipConstraint\Operators\IsRelatedToOperator::make()
                                ->titleAttribute('name')
                                ->searchable()
                                ->multiple(),
                        ),
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

Is it possible to make nested relationship forms?
FilamentFFilament / ❓┊help
2y ago
is it possible to open a relationship in a modal?
FilamentFFilament / ❓┊help
2y ago
Select filter in QueryBuilder for nested relationship
FilamentFFilament / ❓┊help
3mo ago
How to use nested relationship in SelectFilter?
FilamentFFilament / ❓┊help
3y ago