Add (checks)

This commit is contained in:
2023-11-28 16:04:03 +08:00
parent 44aba5b234
commit 3bb4a43d72
3 changed files with 7 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ class FrontHomeController extends Controller
{
public function index(Request $request)
{
$latest_ai_tools = AiTool::orderBy('created_at', 'DESC')->take(12)->get();
$latest_ai_tools = AiTool::orderBy('created_at', 'DESC')->whereNotNull('screenshot_img')->take(12)->get();
return view('front.home', compact('latest_ai_tools'));
}