$this->form->fill();
$this->form->fill($this->data);
ToggleButtons::make('toggleButton') ->disabled(fn (Get $get): bool => ! $get('toggle')) ->default('1') ->grouped() ->options([ '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', ]);
public function mount(): void { $this->form->fill($this->data); }
ToggleButtons::make('toggleButton') ->grouped() ->requiredIf('toggle', false) ->options([ '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', ]);
Toggle::make('toggle') ->dehydrated(false) ->live(),