Add autoindexing

This commit is contained in:
2023-11-28 15:51:04 +08:00
parent 6d78a80946
commit a37f765297

View File

@@ -30,12 +30,12 @@ public static function handle(int $ai_tool_id)
$ai_tool_url = route('front.aitool.show', ['ai_tool_slug' => $ai_tool->slug]);
try {
IndexNow::submit($post_url);
IndexNow::submit($ai_tool_url);
} catch (Exception) {
}
try {
LaravelGoogleIndexing::create()->update($post_url);
LaravelGoogleIndexing::create()->update($ai_tool_url);
} catch (Exception) {
}