public function validateEmail($attribute, $value)
    {
        if (! is_string($value) && ! (is_object($value) && method_exists($value, '__toString'))) {
            return false;
        }

        return (new EmailValidator)->isValid($value, new RFCValidation);
    }
public function validateEmail($attribute, $value)
    {
        if (! is_string($value) && ! (is_object($value) && method_exists($value, '__toString'))) {
            return false;
        }

        return (new EmailValidator)->isValid($value, new RFCValidation);
    }
public function validateEmail ( $ attribute , $ value ) { if ( ! is_string ( $ value ) && ! ( is_object ( $ value ) && method_exists ( $ value , '__toString' ) ) ) { return false ; } return ( new EmailValidator ) -> isValid ( $ value , new RFCValidation ) ; }
Validate that an attribute is a valid e-mail address.

@param  string  $attribute
@param  mixed   $value
@return bool
Validate that an attribute is a valid e - mail address .