Add (facebook)

This commit is contained in:
2023-11-21 03:10:27 +08:00
parent e0e13567d1
commit 4195aca2fe
8 changed files with 120 additions and 2 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)->where('status', 'publish')->first();
$post = Post::where('slug', $slug)->whereIn('status', ['publish','future'])->first();
if (is_null($post)) {
return abort(404);