main
liutk 2024-06-30 16:09:13 +08:00
parent 0aedb6c23f
commit 67be564489
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@ class ArticleController extends ApiController
public function category(Request $request)
{
$categories = Keyword::allChildrenOfKey('article_category')->orderBy('sort', 'asc')->get();
$categories = Keyword::allChildrenOfKey('article_category')
// ->where('key', 'top')
->orderBy('sort', 'asc')->get();
return $this->success(['categories'=>ArticleCategoryResource::collection($categories)->resolve()]);
}