projectrebel/automated-sitemap

Create and daily update your website's sitemap.

1.0.0 2020-11-10 21:38 UTC

This package is auto-updated.

Last update: 2024-03-31 22:59:05 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.