Update (ui)

This commit is contained in:
2023-11-20 09:55:41 +08:00
parent 55503c3436
commit 5faedfbd3f

View File

@@ -22,7 +22,7 @@ public function home(Request $request)
$latest_posts = Post::where(function ($query) use ($featured_posts) { $latest_posts = Post::where(function ($query) use ($featured_posts) {
$query->whereNotIn('id', $featured_posts->pluck('id')->toArray()); $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); return response(view('front.welcome', compact('featured_posts', 'latest_posts')), 200);
} }