Checkbox

Minimal
Checkbox::make('Checkbox') //cast to boolean on model?
->rules('boolean')
->default(true)Detailed
Checkbox::make('Checkbox') //cast to boolean on model?
->xmodel(on: 'debounce.300ms', defer: false)
->placeholder('The checkbox label')
->attr(['data-hi' => 'hello'])
->rules('boolean')
->default(true); //equivalent to checkedComments about some options
Last updated
Was this helpful?