|
...
|
...
|
@@ -33,8 +33,8 @@ class CustomRequest extends FormRequest |
|
|
|
$rule = [
|
|
|
|
'name' => ['required','max:100'],
|
|
|
|
// 'title' => ['required','max:200'],
|
|
|
|
'keywords' => ['required','max:200'],
|
|
|
|
'description' => ['required','max:250'],
|
|
|
|
// 'keywords' => ['required','max:200'],
|
|
|
|
// 'description' => ['required','max:250'],
|
|
|
|
// 'html' => ['required'],
|
|
|
|
'url' => ['required','max:200','url'],
|
|
|
|
'status' => ['required','in:0,1'],
|
|
...
|
...
|
@@ -63,10 +63,10 @@ class CustomRequest extends FormRequest |
|
|
|
'name.max' => '名称不能超过100个字符',
|
|
|
|
// 'title.required' => '网页标题必须',
|
|
|
|
// 'title.max' => '网页标题不能超过200个字符',
|
|
|
|
'keywords.required' => '网页关键字必须',
|
|
|
|
'keywords.max' => '网页关键字不能超过200个字符',
|
|
|
|
'description.required' => '网页描述必须',
|
|
|
|
'description.max' => '网页描述不能超过250个字符',
|
|
|
|
// 'keywords.required' => '网页关键字必须',
|
|
|
|
// 'keywords.max' => '网页关键字不能超过200个字符',
|
|
|
|
// 'description.required' => '网页描述必须',
|
|
|
|
// 'description.max' => '网页描述不能超过250个字符',
|
|
|
|
|
|
|
|
'url.required' => '链接必须',
|
|
|
|
'url.max' => '链接不能超过200个字符',
|
...
|
...
|
|