Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Thibaultvanc's avatar

Form validation > email with underscore on the domain

Hello,

here the validation rules :

$this->validate(request(), [
      'email'=>'required|email',
     
      ]
    );

here the email in the request('email') : info@orga_nit.com

here the laravel response : The email must be a valid email address.

Any idea ?

0 likes
2 replies
Thibaultvanc's avatar
Thibaultvanc
OP
Best Answer
Level 37

Got the response > domain with underscore does not exists

Cronix's avatar

domain names with underscores violate RFC1035 (2.3.1), so they are technically not valid names.

The labels must follow the rules for ARPANET host names. They must start with a letter, end with a letter or digit, and have as interior characters only letters, digits, and hyphen. There are also some restrictions on the length. Labels must be 63 characters or less.

https://tools.ietf.org/html/rfc1035

Please or to participate in this conversation.