调整首页

This commit is contained in:
2020-09-21 11:23:11 +08:00
parent acf2eac2fe
commit 7e7d847ef0
3 changed files with 40 additions and 41 deletions

View File

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