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;