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

@@ -70,6 +70,7 @@ public function discover(Request $request, $category_slug = null)
$ai_tools = AiTool::when(! is_null($category), function ($query) use ($category) {
$query->where('category_id', $category->id);
})
->where('status','live')
->whereNotNull('screenshot_img')
->orderBy('updated_at', 'DESC')->paginate(6);