rakit / validation

PHP Standalone Validation Library
MIT License
829 stars 143 forks source link

Bug in the Email validator #143

Open solventt opened 2 years ago

solventt commented 2 years ago

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'

ookamiiixd commented 2 years ago

I faced the same issue.

michaelthedev commented 5 months ago

Currently facing the same issue

michaelthedev commented 5 months ago

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