Add (news bites)

This commit is contained in:
2023-11-21 19:18:11 +08:00
parent 2e38a4120c
commit 3210563e42
37 changed files with 1581 additions and 153 deletions

View File

@@ -28,7 +28,7 @@ public function redirect(Request $request, $slug)
public function index(Request $request, $category_slug, $slug)
{
$post = Post::where('slug', $slug)->whereIn('status', ['publish','future'])->first();
$post = Post::where('slug', $slug)->whereIn('status', ['publish', 'future'])->first();
if (is_null($post)) {
return abort(404);