how to return array with validator in laravel code example
Example 1: email validation in laravel
'email' => 'required|email|unique:users,email',
//@sujay
Example 2: validate each value from array laravel
$validator = Validator::make($request->all(), [
"names" => "required|array|min:3",
"names.*" => "required|string|distinct|min:3",
]);