From 6bfc1425a691159a24b978326c64aaf931bf5d61 Mon Sep 17 00:00:00 2001 From: shibafu Date: Sun, 7 Jan 2018 22:45:57 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=AA=E3=81=9C=E5=9B=BA=E5=AE=9A=E4=BB=B6?= =?UTF-8?q?=E6=95=B0=E3=81=AE=E3=81=8A=E7=9F=A5=E3=82=89=E3=81=9B=E5=8F=96?= =?UTF-8?q?=E5=BE=97=E3=81=ABpaginate=E3=82=92=E4=BD=BF=E3=81=A3=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=9F=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/HomeController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 0474516..6acdc6a 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -31,7 +31,8 @@ class HomeController extends Controller ->select('id', 'category', 'pinned', 'title', 'created_at') ->orderByDesc('pinned') ->orderByDesc('created_at') - ->paginate(3); + ->take(3) + ->get(); $categories = Information::CATEGORIES; if (Auth::check()) {