Make default select option other than the disabled option

how to make a default option other than the disabled option.
Select::make('status')
    ->options($this-options)
    ->default(array_key_first($this->options))
    ->disableOptionWhen(fn (string $value): bool => $value === 'option1')

$options = [
    'option1' => 'Option 1', // suppose this is disabled option
    'option2' => 'Option 2',
    'option3' => 'Option 3',
    'option4' => 'Option 4',
    'option5' => 'Option 5',
];
Was this page helpful?