trinityrank/sitemap

Website XML sitemap

v1.1.4 2024-04-05 14:01 UTC

This package is auto-updated.

Last update: 2024-11-08 08:52:25 UTC


README

Latest Version on Packagist Total Downloads

Installation

You can install the package via composer:

composer require trinityrank/sitemap

How To Use

This package has multilang support. It is compatibile with trinityrank/multilanguage. For default language we use config app.locale value.

Step 1: Publishing

You need to publish file from package:

    php artisan vendor:publish --provider="Trinityrank\Sitemap\SitemapServiceProvider" --tag="generate-sitemap-files"

And change settings array according to your needs

Step 2: Registrate provider

  • Registrate MacrosServiceProvider in config/app.php
    /*
        * Application Service Providers...
    */
    App\Providers\MacrosServiceProvider::class

Step 3: Create sitemap

  • Now it is time to create your sitemap

    php artisan sitemap:generate
  • You can also put it into your Kernel.php

    $schedule->command('sitemap:generate')->dailyAt('03:00');

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.