Skip to content

trinity-rank/sitemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TrinityRank Sitemap

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.