diff --git a/app/ModelFilters/CropFilter.php b/app/ModelFilters/CropFilter.php index cc5da8d..f103fed 100644 --- a/app/ModelFilters/CropFilter.php +++ b/app/ModelFilters/CropFilter.php @@ -6,15 +6,6 @@ use EloquentFilter\ModelFilter; class CropFilter extends ModelFilter { - public function categoryId($categoryId) - { - return $this->where('category_id', $categoryId); - } - - public function parentId($parentId){ - return $this->where('parent_id', $parentId); - } - public function type($type) { $q = $this; @@ -34,4 +25,14 @@ class CropFilter extends ModelFilter public function cropType($cropType){ return $this->where('crop_type', $cropType); } + + public function category($categoryId) + { + return $this->where('category_id', $categoryId); + } + + + public function parent($parentId){ + return $this->where('parent_id', $parentId); + } }