FilterEmailValidation
class FilterEmailValidation implements EmailValidation (View source)
Properties
| protected int|null | $flags | The flags to pass to the filter_var function. |
Methods
Create a new validation instance.
Create a new instance which allows any unicode characters in local-part.
Returns true if the given email is valid.
Returns the validation error.
Returns the validation warnings.
Details
void
__construct(int $flags = null)
Create a new validation instance.
static FilterEmailValidation
unicode()
Create a new instance which allows any unicode characters in local-part.
bool
isValid(string $email, EmailLexer $emailLexer)
Returns true if the given email is valid.
InvalidEmail|null
getError()
Returns the validation error.
array
getWarnings()
Returns the validation warnings.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.