I'm using Respect validation library and when I try to validate my input date:
v::key('email', v::notEmpty()->Email()->setName('email'))
It returns the right message like:
"email must be valid email"
But I cannot retrieve name of the attribute which makes the error happen, I hope it has some function like getErrorName() or getErrorAttributes but I cannot find it out. Could you please help me. Thank you so much!