Euler
Euler
FFilament
Created by Euler on 2/29/2024 in #❓┊help
How to set default in ToogleButtons?
I tried to use default('option2'), but without success.
public function form(Form $form): Form
{
return $form
->schema([
ToggleButtons::make('status')
->options([
'option1' => 'First Option',
'option2' => 'Second Option',
'option3' => 'Third Option',
])
]);
}
public function form(Form $form): Form
{
return $form
->schema([
ToggleButtons::make('status')
->options([
'option1' => 'First Option',
'option2' => 'Second Option',
'option3' => 'Third Option',
])
]);
}
8 replies