jakeryansmith / validate-string-of-emails
A Laravel validator for delimiter-separated list of emails.
Installs: 838
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jakeryansmith/validate-string-of-emails
Requires
- php: ^7.2
- illuminate/support: ^5.5
This package is auto-updated.
Last update: 2025-12-12 06:25:47 UTC
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.