... | ... | @@ -49,6 +49,23 @@ $app->singleton( |
|
|
Also in the `bootstrap/app.php`, add the following:
|
|
|
`$app->register(Roumen\Sitemap\SitemapServiceProvider::class);`
|
|
|
|
|
|
Create a file called `sitemap.php` within your `config` folder containing:
|
|
|
```php
|
|
|
<?php
|
|
|
|
|
|
/* Simple configuration file for Laravel Sitemap package */
|
|
|
return [
|
|
|
'use_cache' => false,
|
|
|
'cache_key' => 'laravel-sitemap.' . config('app.url'),
|
|
|
'cache_duration' => 3600,
|
|
|
'escaping' => true,
|
|
|
'use_limit_size' => false,
|
|
|
'max_size' => null,
|
|
|
'use_styles' => true,
|
|
|
'styles_location' => null,
|
|
|
];
|
|
|
```
|
|
|
|
|
|
Finally, add the following to your `routes/web.php`
|
|
|
|
|
|
```php
|
... | ... | |