Unable to set checkbox default value to true

I have this but it's unchecked:
Forms\Components\Checkbox::make('is_admin')
->inline(true)
->default(true)
Forms\Components\Checkbox::make('is_admin')
->inline(true)
->default(true)
It's unchecked. How to make it checked by default?
Solution:
Hmm, perhaps it was because I haven't added the new field is_admin in the migration and Filament seems to need that to work. After migration it seems to be working I guess.
Jump to solution
2 Replies
Vp
Vp8mo ago
Working fine for me
Solution
Wirkhof
Wirkhof8mo ago
Hmm, perhaps it was because I haven't added the new field is_admin in the migration and Filament seems to need that to work. After migration it seems to be working I guess.
Want results from more Discord servers?
Add your server