Skip to content

Checkbox

The checkbox captures a single boolean. The label sits next to the box and describes what checking it means. Create one with Checkbox::make().

Checkbox::make('newsletter', 'Subscribe to the newsletter')

A checkbox is often used for a terms-of-service agreement that must be ticked. Use Laravel’s accepted rule rather than required, which only checks that the field is present:

Checkbox::make('terms', 'I accept the terms and conditions')
->rules(['accepted']);

Checkbox shares label, default value, required, disabled, read-only, and visibility options with every field — see Fields. For validation and conditional behavior, see Validation and Conditional fields.