This is validation rule:
$validator = Validator::make($request->all(), [
'email' => 'required|array',
'email.*' => 'required|email'
]);
if ($validator->fails()) {
throw new ValidationException($validator);
}
This data that with header: application/json, text/plain, */*
Content-Type: application/json I send using client:
[{"email":"[email protected]"},{"email":"[email protected]"}]
Also I tried:
{"emails":["[email protected]"]}
Try to send it as array: