|
...
|
...
|
@@ -30,7 +30,7 @@ class CategoryRequest extends FormRequest |
|
|
|
public function rules()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'title'=>'required|max:50',
|
|
|
|
'title'=>'required|max:200',
|
|
|
|
'route'=>'required',
|
|
|
|
// 'image'=>'required',
|
|
|
|
// 'keywords'=>'max:50',
|
|
...
|
...
|
@@ -42,7 +42,7 @@ class CategoryRequest extends FormRequest |
|
|
|
{
|
|
|
|
return [
|
|
|
|
'title.required' => '请输入分类名称',
|
|
|
|
'title.max' => '分类名称不能超过50个字符',
|
|
|
|
'title.max' => '分类名称不能超过200个字符',
|
|
|
|
'route.required' => '路由不能为空',
|
|
|
|
// 'image.required' => '请上传分类图片',
|
|
|
|
// 'keywords.max' => '分类关键词不能超过50个字符',
|
...
|
...
|
|