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


67.7k

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



10.2k

how to code in the CheckBoxForm class?

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