Answers for "how validate array in laravel in request"

PHP
0

how validate array in laravel in request

$validator = Validator::make($request->all(), [
    "names"    => "required|array|min:3",
    "names.*"  => "required|string|distinct|min:3",
]);
Posted by: Guest on November-12-2020

Code answers related to "how validate array in laravel in request"

Browse Popular Code Answers by Language