ctf0 / email-validator
validation rule to validate email for Laravel
Fund package maintenance!
ctf0
Installs: 2 403
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- guzzlehttp/guzzle: *
- illuminate/support: >=5.2 <9.0
README
EmailValidator
- MailGunValidatorServiceProvider Mailgun Api. "No Longer Free"
- EguliasValidatorServiceProvider Egulias EmailValidator.
- ValidatorPizzaServiceProvider Validator.pizza
also check https://github.com/mailcheck/mailcheck & for vue https://github.com/ctf0/mailcheck-vue
Installation
-
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, ]
Usage
-
add the rule to the validator
'email' => 'required|email|isValid'
-
add the translation keys
'custom' => [ // ... 'email' => [ 'isValid' => 'This :attribute is invalid', ], ],
Security
If you discover any security-related issues, please email ctf0-dev@protonmail.com.