阅读背景:

我可以编写包含对象数据的自定义验证错误消息吗?

来源:互联网 

I know that when I create a model for say 'Jobs' I can set it to unique and set a custom message that's like "This job number is taken." But was wondering is if I could give a validation error that give specific information about the model that's taken. I know that when I create a model for say 'Jobs




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: