更新文件

This commit is contained in:
2022-01-18 10:49:04 +08:00
parent d366b47d6a
commit bb2511a87b
2 changed files with 32 additions and 7 deletions

View File

@@ -25,15 +25,18 @@ class CategoryController extends Controller
$template = $category->template;
}
$pageCount = 15;//每页显示数量
//人才
if ($category->type == Category::TYPE_PERSON) {
$directory = 'resume';
$pageCount = 100;
}
$articles = $category->relations(Category::TYPE_ARTICLE)
->where('status', 1)
->latest('sort')
->latest('created_at')
->paginate();
->paginate($pageCount);
$parent = $category;
if (! $category->getChildrenCount() && $category->parent) {