F
Filament17mo ago
dyo

set toggle default value in form builder

Toggle::make('paket_donasi')->label('Buat Paket Donasi')
->dehydrated(false)->reactive()->default(true),
Toggle::make('paket_donasi')->label('Buat Paket Donasi')
->dehydrated(false)->reactive()->default(true),
why can't i make the default value of toggle to be true?
5 Replies
Vp
Vp17mo ago
I c/p your code and everything works for me.. Didn't see "form builder" sorry
LeandroFerreira
LeandroFerreira17mo ago
did you create the mount method?
public function mount(): void
{
$this->form->fill();
}
public function mount(): void
{
$this->form->fill();
}
dyo
dyoOP17mo ago
sorry i dont get it, can you show the documentation about it?
LeandroFerreira
LeandroFerreira17mo ago
Filament
Getting started - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
dyo
dyoOP17mo ago
got it.. thanks..
Want results from more Discord servers?
Add your server