Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 3.19 KB

1-Installation-and-Setup.md

File metadata and controls

66 lines (49 loc) · 3.19 KB

1. Installation

Table of contents

  1. Installation and Setup
  2. Configuration
  3. Usage

Version Compatibility

Laravel Sitemap Laravel
Laravel Sitemap v3.x Laravel v7.x
Laravel Sitemap v2.x Laravel v6.x
Laravel Sitemap v1.4.x Laravel v5.8
Laravel Sitemap v1.3.x Laravel v5.7
Laravel Sitemap v1.2.x Laravel v5.6
Laravel Sitemap v1.1.x Laravel v5.5
Laravel Sitemap v1.0.x Laravel v5.4

Composer

You can install this package via Composer by running this command:

composer require arcanedev/laravel-sitemap

Laravel

Setup

NOTE : The package will automatically register itself if you're using Laravel >= v5.5, so you can skip this section.

Once the package is installed, you can register the service provider in config/app.php in the providers array:

'providers' => [
    ...
    Arcanedev\LaravelSitemap\LaravelSitemapServiceProvider::class,
],

Artisan commands

To publish the config/lang/view files, run this command:

php artisan vendor:publish --provider="Arcanedev\LaravelSitemap\LaravelSitemapServiceProvider"