Answer the question
In order to leave comments, you need to log in
Why doesn't required_unless work with boolean?
There is a piece of code:
$validator = Validator::make($args, array(
'name' => 'required|min:4',
'phone' => 'required|numeric|digits_between:3,15',
'delivery' => 'required|boolean',
'address' => 'required_unless:delivery,false|min:10|max:60',
));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question