Most of the laravel developers use default email validation service provided by laravel. And it does its job to some extent. Our regular email validation looks like this:

'email' => 'required|email|unique:users|max:255'

This default validator checks string against RFC spec which means it validates whether string is valid email address or not.

Is RFC validation enough?

RFC’s perception of email is quite loose in terms of what it means by email. According to RFC, harry@gmail and harry@gmail.con are valid email.

Sending verification email is a solution to this problem but what if a system does not need to verify its user. To address this problem, we need another approach.

#tutorials #laravel

Email Validation using Laravel DNS Validation
3.40 GEEK