Simple Laravel Sitemap Generator
The crawler considers "noindex" as well as canonical URLs by default. The last modified date is based on the "article:modified_time" value, or alternatively, the current date. Priorities are guessed based on the depth of the page in the website.
The crawl and generation are triggered using a Laravel CLI command. This way, you can include it in your deployment steps and/or schedule regular execution.
You can install the package using composer:
composer require bringyourownideas/laravel-sitemap
Further details can be found on the repository. With this step the required service provider is automatically installed. If you have opted out from auto discovery you will need to install the Laravel service provider manually:
php artisan vendor:publish --provider="BringYourOwnIdeas\LaravelSitemap\SitemapServiceProvider"
To trigger the crawl and generate of the sitemap you need to run the following artisan command:
php artisan generate:sitemap
This will fetch the required resources, analyse the web-pages and write the sitemap.xml file into the "public"-directory. To regularly update it you can schedule the execution in your "app/Console/Kernel.php"-file.
More information can be found on the GitHub repository for the project: https://github.com/bringyourownideas/laravel-sitemap.