Select component with ->multiple() method

I have this code
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?
Was this page helpful?