显示启用分类最多6个
This commit is contained in:
parent
a818c0c9f7
commit
2a3fbe2a1c
|
|
@ -41,7 +41,9 @@ class CategoryRepo
|
|||
->from('categories as c')
|
||||
->with(['description', 'children.description'])
|
||||
->where('parent_id', 0)
|
||||
->where('active', true)
|
||||
->orderBy('position')
|
||||
->limit(6)
|
||||
->get();
|
||||
|
||||
$categoryList = CategoryDetail::collection($topCategories);
|
||||
|
|
|
|||
Loading…
Reference in New Issue