This creates sitemap.xml in your public folder using your APP_URL.To generate a production sitemap locally, modify the $url variable in app/Console/Commands/GenerateSitemap.php.
Larasonic automatically schedules daily sitemap generation in routes/console.php:
Copy
// Automatically generate sitemap daily at midnightSchedule::command('generate:sitemap')->daily();