|
|
|
@ -37,9 +37,9 @@ class CategoryService implements CategoryServiceInterface |
|
|
|
|
|
|
|
public function allForStore($storeId) |
|
|
|
{ |
|
|
|
$goodsTypeIds = Goods::query()->select('category_id') |
|
|
|
$goodsTypeIds = Goods::query()->select('id','category_id') |
|
|
|
->where(['store_id' => $storeId]) |
|
|
|
->groupBy(['category_id']) |
|
|
|
->groupBy('category_id', 'id') |
|
|
|
->get()->toArray(); |
|
|
|
|
|
|
|
return Category::query() |
|
|
|
|