feat(commands): add GenerateSitemapCommand for sitemap generation

- Added GenerateSitemapCommand to create sitemap.xml
- Updated Kernel to schedule sitemap generation weekly
- Updated composer.json with spatie/laravel-sitemap dependency
This commit is contained in:
Rico van Zelst
2024-02-26 17:48:22 +01:00
parent d7f03d3315
commit c6f9423241
5 changed files with 31598 additions and 1 deletions

View File

@@ -13,6 +13,8 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule): void
{
$schedule->command('db:seed --force')->twiceDaily(1, 13)->timezone('Europe/Amsterdam');
$schedule->command('sitemap:generate')->weekly();
}
/**