Validation

All of Laravel's validation rules are available to your fields, including rules such as Accepted if, that kicks in only if a condition is met on another field.

required is by far the most commonly applied rule in forms and for this reason, a badge is rendered on fields that are required.

Below is a little playground for you to test some validation rules.

Validation

Required
Required
This input is required
Regex
Regex required for this field: `[A-Z][a-z]* [A-Z][a-z]*`
Min / Max length
4 ≤ length ≤ 10 characters (validation)
Min / Max value
Must accept
This disclaimer must be accepted:
Show
Must decline
This toggle must be accepted
Required checkboxes
Required
At least 1 option must be selected
Required radios
Required
1 option must be selected
Required next field
Depending on the value of this field, one of the following 2 fields is required
Required with field
If the above field is "accepted", this field is required.
Required without field
If the above field is "declined", this field is required.
Image
Only a jpg/png/webp under 200kB is admissible here