laravel is valid email code example
Example 1: email validation in laravel
'email' => 'required|email|unique:users,email',
//@sujay
Example 2: laravel check if email is real
<?php
$email = "[email protected]";
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
echo("$email is a valid email address");
} else {
echo("$email is not a valid email address");
}
?>