diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index fa25d59a..0e6f6a34 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -43,7 +43,8 @@ public function index(Request $request) ], [ ['isPromoted', 'DESC'], - ['isSticky', 'DESC'] + ['isSticky', 'DESC'], + ['publishedAt', 'DESC'] ], $request->get('page', 1), option('general', 'defaultPageSize', 20)