projectrebel / automated-sitemap
Create and daily update your website's sitemap.
Requires
- spatie/laravel-sitemap: ^5.8
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.4
This package is auto-updated.
Last update: 2024-12-31 00:25:32 UTC
README
This package registers a simple command which uses spatie/laravel-sitemap to generate a sitemap for your website.
Installation
The first thing to do is require the package using composer
composer require "projectrebel/automated-sitemap"
Once the package has been installed, you can publish the config for spatie/laravel-sitemap
if you need more advanced configuration.
php artisan sitemap:install
Usage
Add the newly registered command to your task schedule in Console/Kernel.php
:
$schedule->command('sitemap:generate')->daily();
The command will create sitemap.xml
and place it at your public_path()
. You can also use php artisan sitemap:generate
whenever you would like to update the sitemap outside of the scheduled task.
It is recommended to follow Google's guidelines for submitting and updating your website's sitemap.
Changelog
Please see CHANGELOG for more information what has changed recently.