Update (display): do not show non live tools

This commit is contained in:
2023-11-28 17:53:07 +08:00
parent 7d0a325c61
commit 2ac4988144
4 changed files with 5 additions and 4 deletions

View File

@@ -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);