how to disable the select option in column?

Code: SelectColumn::make('product') ->options([ 'rfid_card' => 'RFID Card', 'eco_card' => 'Eco Card', 'bio_card' => 'Bio Card' ]) ->selectablePlaceholder(false) ->sortable(), I use ->selectablePlaceholder(false), but it doesn't work
No description
4 Replies
Parthiban N
Parthiban N3w ago
1. To disable the whole select use ->disabled(bool | Closure $condition = true) 2. To disable the options use ->disableOptionWhen(bool | Closure $callback)
Dennis Koch
Dennis Koch3w ago
Are you looking for ->nullable(false)?
jayy26.
jayy26.OP3w ago
no its work thank u Parthiban
Parthiban N
Parthiban N3w ago
❤️

Did you find this page helpful?