Skip to content

Commit 762147f

Browse files
committed
fix(sitemap): move sitemap file to resource path
1 parent b8f0166 commit 762147f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

app/Console/Commands/SitemapGenerate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function handle()
5757
}
5858
}
5959

60-
$sitemap->writeToFile(public_path('sitemap/sitemap.xml'));
60+
$sitemap->writeToFile(resource_path('sitemap.xml'));
6161

6262
return Command::SUCCESS;
6363
}

app/Http/Controllers/HomeController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function terms()
3232

3333
public function sitemap()
3434
{
35-
$xml = file_get_contents(public_path('sitemap/sitemap.xml'));
35+
$xml = file_get_contents(resource_path('sitemap.xml'));
3636

3737
return response(content: $xml, headers:['Content-Type' => 'application/xml']);
3838
}

0 commit comments

Comments
 (0)