© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
gh057x

Select component with ->multiple() method

I have this code
Forms\Components\Select::make('instrument_id')
   ->multiple()
   ->relationship('instruments', 'instruments.name')
   ->searchable()
   ->preload(),
Forms\Components\Select::make('instrument_id')
   ->multiple()
   ->relationship('instruments', 'instruments.name')
   ->searchable()
   ->preload(),

It has a
belongsToMany
belongsToMany
relationship
instruments
instruments
, upon submission, I can't get the value of
instrument_id
instrument_id
but when I removed the
multiple()
multiple()
method that's the time
instrument_id
instrument_id
has value

Do you know how can I get the value when using
multiple()
multiple()
method?
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 component Allow Multiple select
FilamentFFilament / ❓┊help
2y ago
Form Select component select all options method
FilamentFFilament / ❓┊help
3y ago
Issue when working with searchable method in Select component
FilamentFFilament / ❓┊help
3y ago
Problems with the maxItem() of the Multiple Select Component
FilamentFFilament / ❓┊help
2y ago