Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation array input

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