Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

validate each value from array laravel

$validator = Validator::make($request->all(), [
    "names"    => "required|array|min:3",
    "names.*"  => "required|string|distinct|min:3",
]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #validate #array #laravel
ADD COMMENT
Topic
Name
2+8 =