class Illuminate / Validation / Concerns / FilterEmailValidation
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

FilterEmailValidation

Implements

  • Egulias\...\EmailValidation

Properties

protected

$flags
  • int
  • null
  • The flags to pass to the filter_var function.

    Default: null

    Methods

    public

    __construct ( $flags ) : void

    Create a new validation instance.

    Parameters

    • $flags int
    public static

    unicode ( ) : static

    Create a new instance which allows any unicode characters in local-part.

    public

    isValid ( string $email , Egulias\...\EmailLexer $emailLexer ) : bool

    Returns true if the given email is valid.

    Parameters

    • $email string
    • $emailLexer Egulias\...\EmailLexer
    public

    getError ( ) : Egulias\...\InvalidEmail|null

    Returns the validation error.

    public

    getWarnings ( ) : Egulias\...\Warning[]

    Returns the validation warnings.