|
...
|
...
|
@@ -31,9 +31,10 @@ class CategoryRequest extends FormRequest |
|
|
|
{
|
|
|
|
return [
|
|
|
|
'title'=>'required|max:50',
|
|
|
|
'route'=>'required',
|
|
|
|
// 'image'=>'required',
|
|
|
|
'keywords'=>'max:50',
|
|
|
|
'describe'=>'max:200',
|
|
|
|
// 'keywords'=>'max:50',
|
|
|
|
// 'describe'=>'max:200',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -42,9 +43,10 @@ class CategoryRequest extends FormRequest |
|
|
|
return [
|
|
|
|
'title.required' => '请输入分类名称',
|
|
|
|
'title.max' => '分类名称不能超过50个字符',
|
|
|
|
'route.required' => '路由不能为空',
|
|
|
|
// 'image.required' => '请上传分类图片',
|
|
|
|
'keywords.max' => '分类关键词不能超过50个字符',
|
|
|
|
'describe.max' => '分类描述不能超过200个字符',
|
|
|
|
// 'keywords.max' => '分类关键词不能超过50个字符',
|
|
|
|
// 'describe.max' => '分类描述不能超过200个字符',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|