From 53d64dcaca9251bb36cd466b9212d6a77b76b0aa Mon Sep 17 00:00:00 2001 From: merdan Date: Mon, 18 Apr 2022 14:01:37 +0500 Subject: [PATCH] search suggestions finish --- packages/Sarga/API/Http/Controllers/Categories.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/Sarga/API/Http/Controllers/Categories.php b/packages/Sarga/API/Http/Controllers/Categories.php index 441ad8fd8..819d76793 100644 --- a/packages/Sarga/API/Http/Controllers/Categories.php +++ b/packages/Sarga/API/Http/Controllers/Categories.php @@ -37,8 +37,8 @@ class Categories extends Controller if($category) return response([ - 'subcategories' =>$category->children, - 'attributes' =>Attribute::collection($category->filterableAttributes), + 'subcategories' => Category::collection($category->children), + 'attributes' => Attribute::collection($category->filterableAttributes), 'brands' => Brand::collection($category->brands), ]); else{