From 542bc677c51b7a670331fe9fbe0a889ac49241da Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Thu, 3 Nov 2022 16:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=86=9C=E4=BD=9C=E7=89=A9?= =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ModelFilters/CropFilter.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/ModelFilters/CropFilter.php b/app/ModelFilters/CropFilter.php index 1e52d15..cc5da8d 100644 --- a/app/ModelFilters/CropFilter.php +++ b/app/ModelFilters/CropFilter.php @@ -11,6 +11,10 @@ class CropFilter extends ModelFilter return $this->where('category_id', $categoryId); } + public function parentId($parentId){ + return $this->where('parent_id', $parentId); + } + public function type($type) { $q = $this;