Official package: https://github.com/Laravelium/laravel-sitemap
Run the following command and provide the latest stable version (e.g v8.*) :
composer require lutomski/laravel-sitemap
or add the following to your composer.json
file :
"lutomski/laravel-sitemap": "^10.*"
"lutomski/laravel-sitemap": "^9.*"
Publish needed assets (styles, views, config files) :
php artisan vendor:publish --provider="Laravelium\Sitemap\SitemapServiceProvider"