I have the following rules:
$rules = array(
'name' => 'required|alpha_num|unique:users,username',
'password' => 'required|min:6|confirmed',
'email' => 'required|email|unique:users'
);
unique
checks for existing emails properly, HOWEVER, if I input an invalid email address (something like kolę@ddd.com) I get a "Woops, something went wrong" laravel error. It seems that the validation doesn't stop at the email
rule and the wrong email address is being passed to the unique
rule. If I remove the unique
rule it works properly, but doesn't check if a certain email exists. How do I solve this?