From 5faedfbd3fd4413cbb9c86fc33d37685c301c047 Mon Sep 17 00:00:00 2001 From: Charles Teh Date: Mon, 20 Nov 2023 09:55:41 +0800 Subject: [PATCH] Update (ui) --- app/Http/Controllers/Front/FrontHomeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Front/FrontHomeController.php b/app/Http/Controllers/Front/FrontHomeController.php index 64f1602..9961ddc 100644 --- a/app/Http/Controllers/Front/FrontHomeController.php +++ b/app/Http/Controllers/Front/FrontHomeController.php @@ -22,7 +22,7 @@ public function home(Request $request) $latest_posts = Post::where(function ($query) use ($featured_posts) { $query->whereNotIn('id', $featured_posts->pluck('id')->toArray()); - })->where('status', 'publish')->where('published_at', '<=', now())->orderBy('published_at', 'desc')->limit(9)->get(); + })->where('status', 'publish')->where('published_at', '<=', now())->orderBy('published_at', 'desc')->limit(10)->get(); return response(view('front.welcome', compact('featured_posts', 'latest_posts')), 200); }