Update (display): do not show non live tools
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user