Answer the question
In order to leave comments, you need to log in
How to set in validator in laravel with an array?
Example of using in validator
$values = ['one', 'two', 'three'];
\Validator::make($input, ['value' => 'in:one,two,three']);
\Validator::make($input, ['value' => 'in:' . implode(',', $values)]);
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