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


64.1k

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



9.3k

how to code in the CheckBoxForm class?

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