How to build a checkbox group?

How to build a checkbox group like this:

<input type="checkbox" name="hobbies[]">sports
<input type="checkbox" name="hobbies[]">coding
<input type="checkbox" name="hobbies[]">compter game


79.4k

using volt, html or $form->render(); ?



16.1k

how to code in the CheckBoxForm class?

using volt, html or $form->render(); ?