更新文件
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user