5.8 Email validation changes #1555
Description
The email validation package thats now being used in 5.8 clearly covers a lot more cases now as it matches a range of RFC's, which is a good thing, I guess!
As this is the case, periods (.) are no longer required which is technically correct but the likelihood of any of the methods that developers are using to send email support a domain without a period is really slim, unless you're using it internally as it will be matching a hostname.
even ' @ ' is valid, again it's correct as per the RFC's but highly unusual..
The package is customisable, you can add your own validators. However, there is no way to customise the behaviour within Laravel without extending the validator and implement your own validation check.
I personally wouldn't consider requiring a period in the domain part of the email address as "special case". Users could easily enter "JohnDoe@yahoo" in their user profile for example, passes validation (if you're not using another service to go beyond, DNS check etc) and then an issue only gets noticed when emails are failing to send as they forgot to supply .com..
Would there be a consideration to make this customisable? Just feels like we are covering highly unusual cases now, which if that was your need then maybe bring in a package specifically as such the one being used 🤷♂️