From a7531432d4f2dcfab7a2b9dd4a0d54d07612f2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 7 Dec 2021 16:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UniqueValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UniqueValidator.php b/src/UniqueValidator.php index 454d6b1..2201e03 100644 --- a/src/UniqueValidator.php +++ b/src/UniqueValidator.php @@ -30,7 +30,7 @@ class UniqueValidator extends BaseValidator } $model = $this->model; - if (!$this->model->getIsCreate()) { + if (!$this->model->getIsNowExample()) { return true; } if ($model::query()->where([$this->field => $param[$this->field]])->exists()) {