A
A
an5432019-03-04 07:42:29
Laravel
an543, 2019-03-04 07:42:29

How to check if at least one checkbox is selected?

Good afternoon, there is a project on Laravel, in the blade there is a group of checkboxes, how to make a required type check or validation in the controller with the return of the entered data if none of the checkboxes is selected?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin B., 2019-03-04
@Kostik_1993

If your checkbox is of one parameter type and use it as an array then there is a minimum size rule for the array in validation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question