validate each value from array laravel
snippet in php

validate each value from array laravel

user9992

$validator = Validator::make($request->all(), [
    "names"    => "required|array|min:3",
    "names.*"  => "required|string|distinct|min:3",
]);