大家好我有一个验证器错误,我无法找到解决方案。 我有以下验证规则:
'meta_description' => 'required|max:200',
'meta_keywords' => 'required|max:200',
'item_url' => 'required|max:500',
'categories' => 'required|not_in:0',
'tags' => 'required|not_in:0',
'title' => 'required|max:150',
'description' => 'required|max:500',
'author-name' => 'required|max:250',
'author-link' => 'required|max:250',
'format' => 'required|max:300',
'smart-objects' => 'required|max:300',
'dimensions' => 'required|max:300',
'photoshop-version' => 'required|max:300',
'file-size' => 'max:300',
'link' => 'max:500',
'main_item_image' =>'required|mimes:jpeg,bmp,png,jpg|max:10000',
'item_image' => 'required|mimes:jpeg,bmp,png,jpg|max:10000',
验证有效,但是当所有输入都被填充并且我尝试提交时,我收到以下错误:数组到字符串转换","文件":" \ laravel项目/供应商的路径/laravel/framework/src/Illuminate/Validation/Validator.php","线":858
答案 0 :(得分:0)
我刚发现问题标签验证包含多个id而not_in:0是问题。