© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
karim charfaoui

Select relationship

hello on my case my relation between User and Company is one to many "company HasMany users" on my code i can gate companies without users on the creation but when i edit i want also add on my select the company of the user
this is my current code :
Select::make('company_id')
->relationship('company', 'name',fn (Builder $query)
=> $query
->whereDoesntHave('users' )
)
Company_Model.png
user_Model.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

Repeater relationship select
FilamentFFilament / ❓┊help
13mo ago
MorphToMany Select Relationship
FilamentFFilament / ❓┊help
16mo ago
Select default relationship
FilamentFFilament / ❓┊help
2y ago
Select->relationship order
FilamentFFilament / ❓┊help
3y ago