我尝试使用laravel validate函数验证逗号分隔的电子邮件地址

时间:2019-05-24 18:04:24

标签: php laravel validation email

return validator::make($data, [
    'pre_registerNtfctn.*' => 'required|email',
], [
    'pre_registerNtfctn.required' => 'Please enter VIC Pre-registration notification email first',
    'pre_registerNtfctn.email'    => 'Please enter valid email address',
]);

0 个答案:

没有答案