© 2026 Hedgehog Software, LLC

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

Relationship search in belongsTo select

Hello, is it possible to make a relationship search for a resource relationship?

I have this for example:

Forms\Components\Select::make('contact_id')
->relationship(name: 'contact', titleAttribute: 'email')
->searchable(['first_name', 'last_name', 'email', 'organisation.name'])
->required(),

This is not working because 'organisation.name' is not a valid column. Is it possible to do it or do I have to do it differently so I can search contacts by their organisation name?

Thank you!
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

Associate BelongsTo relationship
FilamentFFilament / ❓┊help
3y ago
Form Select - Search Across Relationship
FilamentFFilament / ❓┊help
2y ago
Form Select relationship search in two columns
FilamentFFilament / ❓┊help
2y ago
BelongsTo select save issue
FilamentFFilament / ❓┊help
3y ago