larvel array must have value validation code example
Example 1: validate each value from array laravel
$validator = Validator::make($request->all(), [
"names" => "required|array|min:3",
"names.*" => "required|string|distinct|min:3",
]);
Example 2: validate field for existing client laravel
unique:users,username,id,1 // table, field, idcolumn, value to ignore