我正在使用克维布罗克验证图像大小在拉拉。而且效果很好。但是我想自定义错误消息。
我创建了一个消息数组
$messages = array(
'image-size' => 'My custome message.',
);并传递给
$validation = Validator::make(array($file => $fileObj), array($file => $rules), $messages);但这不管用。
-Thanks Arun
发布于 2014-12-17 07:19:38
你用错了名字,应该加上下划线,就像
$messages = array(
'image_size' => 'My custome message.',
);https://stackoverflow.com/questions/27520121
复制相似问题