作者 lyh

gx

@@ -30,10 +30,10 @@ class KeywordRequest extends FormRequest @@ -30,10 +30,10 @@ class KeywordRequest extends FormRequest
30 public function rules() 30 public function rules()
31 { 31 {
32 return [ 32 return [
33 - 'title'=>'required|max:50',  
34 - 'seo_title'=>'max:200',  
35 - 'seo_keywords'=>'max:200',  
36 - 'seo_description'=>'max:200', 33 + 'title'=>'required|max:200',
  34 + 'seo_title'=>'max:255',
  35 + 'seo_keywords'=>'max:500',
  36 + 'seo_description'=>'max:500',
37 'related_news_ids'=>'array|max:2', 37 'related_news_ids'=>'array|max:2',
38 'related_blog_ids'=>'array|max:2', 38 'related_blog_ids'=>'array|max:2',
39 ]; 39 ];
@@ -43,10 +43,10 @@ class KeywordRequest extends FormRequest @@ -43,10 +43,10 @@ class KeywordRequest extends FormRequest
43 { 43 {
44 return [ 44 return [
45 'title.required' => '请输入关键词', 45 'title.required' => '请输入关键词',
46 - 'title.max' => '关键词不能超过50个字符',  
47 - 'seo_title.max' => 'SEO标题不能超过200个字符',  
48 - 'seo_keywords.max' => 'SEO关键词不能超过200个字符',  
49 - 'seo_description.max' => 'SEO描述不能超过200个字符', 46 + 'title.max' => '关键词不能超过200个字符',
  47 + 'seo_title.max' => 'SEO标题不能超过255个字符',
  48 + 'seo_keywords.max' => 'SEO关键词不能超过500个字符',
  49 + 'seo_description.max' => 'SEO描述不能超过500个字符',
50 'related_news_ids.max' => '关联新闻不能超过两条', 50 'related_news_ids.max' => '关联新闻不能超过两条',
51 'related_blog_ids.max' => '关联博客不能超过两条', 51 'related_blog_ids.max' => '关联博客不能超过两条',
52 ]; 52 ];