Update (display): do not show non live tools
This commit is contained in:
@@ -13,7 +13,7 @@ class FrontToolController extends Controller
|
||||
{
|
||||
public function show(Request $request, $ai_tool_slug)
|
||||
{
|
||||
$ai_tool = AiTool::where('slug', $ai_tool_slug)->first();
|
||||
$ai_tool = AiTool::where('slug', $ai_tool_slug)->where('status','live')->first();
|
||||
|
||||
if (is_null($ai_tool)) {
|
||||
return abort(404);
|
||||
|
||||
Reference in New Issue
Block a user