From 7ab40ba73ab58d7d2d43594028af4ae1a8791987 Mon Sep 17 00:00:00 2001 From: yuta Date: Sun, 14 May 2023 15:21:56 +0900 Subject: [PATCH] fix order --- laravel/app/Services/PaperService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/app/Services/PaperService.php b/laravel/app/Services/PaperService.php index 3bda366..47775a6 100644 --- a/laravel/app/Services/PaperService.php +++ b/laravel/app/Services/PaperService.php @@ -36,7 +36,7 @@ public function search(?string $search_sentence): LengthAwarePaginator }); } } - return $query->paginate(15); + return $query->latest()->paginate(15); } /**