Checkboxes

Using labels as key
$options = ['Wifi', 'Bluetooth', 'Ethernet'];
Checkboxes::make('Checkboxes')
->options($options)
->rules(['array', Rule::in($options)])
->default(['Wifi']);
}Associative array
$options = ['Wifi' => 'wf', 'Bluetooth' => 'bl', 'Ethernet' => 'eth'];
Checkboxes::make('Checkboxes')
->options($options)
->rules(['array', Rule::in(array_values($options))])
->default(['wf']);
}Alpine
deferEntangle(false)
options(mixed $options)
Last updated
Was this helpful?