Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 828 Bytes

Dns_email_rule.md

File metadata and controls

32 lines (19 loc) · 828 Bytes

Dns email

  • dns_email()
  • Dns_email_rule()

Validates whether the input's value is a valid email uses \Egulias\EmailValidator\Validation\DNSCheckValidation.

use AJD_validation\AJD_validation as v;

$v = new v;

$v->dns_email()->check('email_field', 'a'); // will put error in error bag
$v->getValidator()->dns_email()->validate('a'); // false

$v->dns_email()->check('email_field', '[email protected]'); // will put error in error bag
$v->getValidator()->dns_email()->validate('[email protected]'); // false

$v->dns_email()->check('email_field', '[email protected]'); // validation passes
$v->getValidator()->dns_email()->validate('[email protected]'); // true

Changelog

Version Description
0.1.0 Initial Release, Also uses "egulias/emailvalidator" for email validation