validation rule to validate email for Laravel
MIT License
also check https://github.com/mailcheck/mailcheck & for vue https://github.com/ctf0/mailcheck-vue
composer require ctf0/email-validator
add the service provider to config/app.php
'providers' => [
ctf0\EmailValidator\MailGunValidatorServiceProvider::class,
// ctf0\EmailValidator\EguliasValidatorServiceProvider::class,
// ctf0\EmailValidator\ValidatorPizzaServiceProvider::class,
]
add the rule to the validator
'email' => 'required|email|isValid'
add the translation keys
'custom' => [
// ...
'email' => [
'isValid' => 'This :attribute is invalid',
],
],
If you discover any security-related issues, please email [email protected].