diff --git a/app/Endpoint/Api/Http/Controllers/Product/ProductCategoryController.php b/app/Endpoint/Api/Http/Controllers/Product/ProductCategoryController.php index e9eb22a1..b2f6e378 100644 --- a/app/Endpoint/Api/Http/Controllers/Product/ProductCategoryController.php +++ b/app/Endpoint/Api/Http/Controllers/Product/ProductCategoryController.php @@ -17,7 +17,7 @@ class ProductCategoryController extends Controller */ public function index(Request $request) { - $categories = ProductCategory::filter(['parent_id' => 2])->latest('sort')->get(); + $categories = ProductCategory::filter(['pid' => 2])->latest('sort')->get(); return ProductCategoryResource::collection($categories); }