|
...
|
...
|
@@ -30,10 +30,10 @@ class KeywordRequest extends FormRequest |
|
|
|
public function rules()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'title'=>'required|max:50',
|
|
|
|
'seo_title'=>'max:200',
|
|
|
|
'seo_keywords'=>'max:200',
|
|
|
|
'seo_description'=>'max:200',
|
|
|
|
'title'=>'required|max:200',
|
|
|
|
'seo_title'=>'max:255',
|
|
|
|
'seo_keywords'=>'max:500',
|
|
|
|
'seo_description'=>'max:500',
|
|
|
|
'related_news_ids'=>'array|max:2',
|
|
|
|
'related_blog_ids'=>'array|max:2',
|
|
|
|
];
|
|
...
|
...
|
@@ -43,10 +43,10 @@ class KeywordRequest extends FormRequest |
|
|
|
{
|
|
|
|
return [
|
|
|
|
'title.required' => '请输入关键词',
|
|
|
|
'title.max' => '关键词不能超过50个字符',
|
|
|
|
'seo_title.max' => 'SEO标题不能超过200个字符',
|
|
|
|
'seo_keywords.max' => 'SEO关键词不能超过200个字符',
|
|
|
|
'seo_description.max' => 'SEO描述不能超过200个字符',
|
|
|
|
'title.max' => '关键词不能超过200个字符',
|
|
|
|
'seo_title.max' => 'SEO标题不能超过255个字符',
|
|
|
|
'seo_keywords.max' => 'SEO关键词不能超过500个字符',
|
|
|
|
'seo_description.max' => 'SEO描述不能超过500个字符',
|
|
|
|
'related_news_ids.max' => '关联新闻不能超过两条',
|
|
|
|
'related_blog_ids.max' => '关联博客不能超过两条',
|
|
|
|
];
|
...
|
...
|
|