Skip to content

Commit

Permalink
修复图片无法重命名的 bug (fixed #536)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xxb committed Oct 9, 2022
1 parent 6661f35 commit c66e583
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Http/Requests/ImageRenameRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function rules()
{
return [
'id' => 'required|numeric',
'name' => 'required|max:50|string|alpha_dash',
'name' => 'required|max:50|string',
];
}

Expand All @@ -35,7 +35,6 @@ public function messages()
'name.required' => '请输入名称',
'name.max' => '名称长度不能超过 50 个字符',
'name.string' => '名称格式不正确',
'name.alpha_dash' => '名称只能是字母、数字,短破折号(-)和下划线(_)'
];
}
}

0 comments on commit c66e583

Please sign in to comment.