F
Filament13mo ago
lazydog

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 relationship instruments, upon submission, I can't get the value of instrument_id but when I removed the multiple() method that's the time instrument_id has value Do you know how can I get the value when using multiple() method?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server