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] Disable API in specific environments #3

Open ghost opened 5 years ago

ghost commented 5 years ago

It would be useful to be able to disable the API calls in specific environments (local, testing, etc.) and simply use the PHP validation.

TheoKouzelis commented 5 years ago

Hello

Yeah that's a good idea. We could add a env('MAILGUN_API_DISABLE', false) to stop the API calls in environments you don't wish to use them in.