Hi everyone
I have to set custom Errors in model attributes. Is there any way of doing so?
Thanks in advance
Hi everyone
I have to set custom Errors in model attributes. Is there any way of doing so?
Thanks in advance
Have a look here. That is, add the message part to your validation specs rules.
/Tommy
I have done it using
$model->addError
method
Is there any way to override the already set error messages ?
What for you want to override the errors?
If the errors you got don’t sastisfact you, change the rules.
I have changed the rules but I think it is not the correct solution.