© 2026 Hedgehog Software, LLC

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

Can I use relationships in a form like this?

I have a table that successfully uses a relationship from another table:

Tables\Columns\TextColumn::make('company.company_name'),

This displays the company name due to the relation setup in the model.
But when I try and replicate this for the form, it doesn't work:

Forms\Components\Select::make('company.company_name')
->required()

How do I get the select drop down to show the company names? (and write the ID back to the database when editing the records)?
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

Form relationships
FilamentFFilament / ❓┊help
2y ago
Can I use a custom form field to pull in a form
FilamentFFilament / ❓┊help
2y ago
Conditional form relationships
FilamentFFilament / ❓┊help
3y ago
Creat form like this
FilamentFFilament / ❓┊help
3y ago