调整分类

This commit is contained in:
2020-09-17 08:56:25 +08:00
parent ea72828001
commit 4bb065f4d6
2 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ class CategoryController extends Controller
$articles = Article::where('category_id', $category->id)
->latest('sort')
->latest()
->paginate();
->paginate(2);
$parent = $category->getTop();