正在显示
1 个修改的文件
包含
4 行增加
和
6 行删除
| @@ -32,8 +32,8 @@ class CategoryRequest extends FormRequest | @@ -32,8 +32,8 @@ class CategoryRequest extends FormRequest | ||
| 32 | return [ | 32 | return [ |
| 33 | 'title'=>'required|max:50', | 33 | 'title'=>'required|max:50', |
| 34 | // 'image'=>'required', | 34 | // 'image'=>'required', |
| 35 | -// 'keywords'=>'required|max:50', | ||
| 36 | -// 'describe'=>'required|max:200', | 35 | + 'keywords'=>'max:50', |
| 36 | + 'describe'=>'max:200', | ||
| 37 | ]; | 37 | ]; |
| 38 | } | 38 | } |
| 39 | 39 | ||
| @@ -43,10 +43,8 @@ class CategoryRequest extends FormRequest | @@ -43,10 +43,8 @@ class CategoryRequest extends FormRequest | ||
| 43 | 'title.required' => '请输入分类名称', | 43 | 'title.required' => '请输入分类名称', |
| 44 | 'title.max' => '分类名称不能超过50个字符', | 44 | 'title.max' => '分类名称不能超过50个字符', |
| 45 | // 'image.required' => '请上传分类图片', | 45 | // 'image.required' => '请上传分类图片', |
| 46 | -// 'keywords.required' => '请输入分类关键词', | ||
| 47 | -// 'keywords.max' => '分类关键词不能超过50个字符', | ||
| 48 | -// 'describe.required' => '请输入分类描述', | ||
| 49 | -// 'describe.max' => '分类描述不能超过200个字符', | 46 | + 'keywords.max' => '分类关键词不能超过50个字符', |
| 47 | + 'describe.max' => '分类描述不能超过200个字符', | ||
| 50 | ]; | 48 | ]; |
| 51 | } | 49 | } |
| 52 | 50 |
-
请 注册 或 登录 后发表评论