validation icon indicating copy to clipboard operation
validation copied to clipboard

Bug in the Email validator

Open solventt opened this issue 4 years ago • 3 comments

For example, there are validation rules for the email field: 'email' => 'required|string|email|unique:emails,email'

This way causes that only the message of the 'email' rule to be always shown whatever rule is triggered.

But if I change the validator name other than 'email' - the problem goes away, e.g.: 'other' => 'required|string|email|unique:emails,email'

solventt avatar Oct 07 '21 16:10 solventt

I faced the same issue.

ookamiiixd avatar Dec 11 '21 06:12 ookamiiixd

Currently facing the same issue

michaelthedev avatar Apr 03 '24 18:04 michaelthedev

You've probably carried on with your lives on this haha

But for anyone having the same issue, i did this fix https://github.com/rakit/validation/issues/161#issue-2223690913

michaelthedev avatar Apr 03 '24 19:04 michaelthedev