refactor: 修改文章及文章分类

This commit is contained in:
2025-01-15 10:19:01 +08:00
parent aa6219da57
commit aefad20dbc
5 changed files with 32 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ class Article
'seo_desc'
])
->with('category')
->language(request()->lang_id)
->where(function($query) use($param) {
if (isset($param['category_id'])) {
$query->where('category_id', '=', $param['category_id']);