99% of the web forms in the wild have an input for emails but sadly most of the times you will either get spam or geprish emails, so
– how do you protect your self against those ?
i usually use the mailgun Api to validate emails on the client side b4 making the request to the server, but
so i thought why not make a validation rule that does the same as the frontEnd using mailgun or any other api to validate the coming emails b4 saving it to the db & so the package email-validator was born 😍.
basically all it does is make a request to the api and return either valid or not and to use it, you simply add
isValid to your email validation rule.
'email' => 'required|email|isValid'
- atm the package support 3 services
but if you know any other good alternatives, tell me and i will add it or better yet send me a PR 🤙.