|
...
|
...
|
@@ -39,7 +39,7 @@ class ProductRequest extends FormRequest |
|
|
|
'title' => 'required|max:200',
|
|
|
|
'route' => 'required|max:200',
|
|
|
|
'gallery' => ['required', 'array'],
|
|
|
|
'icon' => 'required|array',
|
|
|
|
// 'icon' => 'required|array',
|
|
|
|
// 'attrs' => ['array', function ($attribute, $value, $fail) {
|
|
|
|
// foreach ($value as $v) {
|
|
|
|
// if (empty($v['key'])) {
|
|
...
|
...
|
@@ -74,7 +74,7 @@ class ProductRequest extends FormRequest |
|
|
|
'gallery.array' => '产品图片格式异常',
|
|
|
|
// 'attrs.required' => '请添加产品参数',
|
|
|
|
// 'attrs.array' => '产品参数格式异常',
|
|
|
|
'icon.required' => '图标不能为空',
|
|
|
|
// 'icon.required' => '图标不能为空',
|
|
|
|
'category_id.required' => '请选择分类',
|
|
|
|
'intro.required' => '请输入短描述',
|
|
|
|
'intro.max' => '短描述不能超过500个字符',
|
...
|
...
|
|