From 4f4816142af32e5508cec957c974b90fa30b32d6 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Thu, 21 Apr 2022 10:54:08 +0800 Subject: [PATCH] setter --- app/controller/manager/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/manager/Category.php b/app/controller/manager/Category.php index bc6ebdc..7c76c6c 100644 --- a/app/controller/manager/Category.php +++ b/app/controller/manager/Category.php @@ -45,7 +45,7 @@ class Category extends Base $item = input('post.'); $validate = $this->validateByApi($item, [ 'pid|父级分类' => 'require|number', - 'name|标题' => 'require|max:100|unique:disease,name,'.$id, + 'name|标题' => 'require|max:100', ]); if ($validate !== true) {