Skip to content
Permalink
Browse files

Added sitemap.php stub which can now be published along with config

  • Loading branch information...
tbuteler committed Aug 26, 2016
1 parent 87da8a1 commit 1712876ffe452805ede8429dfd236a62d75b046d
Showing with 25 additions and 0 deletions.
  1. +1 −0 src/SitemapServiceProvider.php
  2. +24 −0 src/stubs/sitemap.php
@@ -34,6 +34,7 @@ public function boot()
{
$this->publishes([
__DIR__.'/config.php' => config_path('clumsy/sitemap.php'),
__DIR__.'/stubs/sitemap.php' => base_path(config('clumsy.sitemap.path')),
], 'config');
$this->registerRoute();
@@ -0,0 +1,24 @@
<?php
return [
url('/'),
/*
[
'changefreq' => 'daily',
'priority' => '1.0',
'links' => [
App\Models\Resource::where('active', true)->get()->pluck('permalink'),
],
],
[
'changefreq' => 'monthly',
'priority' => '0.8',
'lastmod' => '2016-08-04',
'links' => [
url('/'),
],
],
*/
];

0 comments on commit 1712876

Please sign in to comment.
You can’t perform that action at this time.