Add (facebook)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user