jakeryansmith/validate-string-of-emails
Composer 安装命令:
composer require jakeryansmith/validate-string-of-emails
包简介
A Laravel validator for delimiter-separated list of emails.
README 文档
README
You can install the package via composer:
composer require jakeryansmith/laravel-validate-emails
You can validate a string of emails separated by a comma.
$request['emails'] = 'dwightschrute@dundermifflin.com,jimhalpert@dundermifflin.com'; $request->validate([ 'emails' => [new StringOfEmails()], ]);
You can also pass in your own delimiter if needed. In this example we are using the '|' pipe character.
$request['emails'] = 'dwightschrute@dundermifflin.com|jimhalpert@dundermifflin.com'; $request->validate([ 'emails' => [new StringOfEmails('|')], ]);
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 838
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-07