Set default checkboxlist value
Can someone give me example how to have a checkboxlist with default value?
i've tried this, but it's not working
i've tried this, but it's not working
CheckboxList::make('test')
->options([
1 => 1,
2 => 2,
3 => 3,
4 => 4,
])->default([2]),