Skip to content

projectrebel/automated-sitemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Sitemaps

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.

About

Create and daily update your website's sitemap.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages