TheoKouzelis / laravel-mailgun-email-validation

Laravel email validation that uses the Mailgun API for a three-step validation check
https://documentation.mailgun.com/en/latest/api-email-validation.html#email-validation
MIT License
11 stars 10 forks source link

[V2] Integrate Laravel's new email validation #5

Open TheoKouzelis opened 5 years ago

TheoKouzelis commented 5 years ago

Laravel no longer uses filter_var($value, FILTER_VALIDATE_EMAIL) for email validation. Laravel now uses https://github.com/egulias/EmailValidator.

Either require Laravel's email validation rule, or directly require the Egulias' package as the base email validator.

smknstd commented 5 years ago

or rewrite the package as a validator which works with egulias's package https://github.com/egulias/EmailValidator#how-to-extend

Maybe then we could use it as any other email validation style: 'email' => 'email:rfc,dns,mailgun'

What do you think ?