Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
wip #90
Browse files Browse the repository at this point in the history
  • Loading branch information
Roumen Damianoff committed Feb 7, 2016
1 parent d981686 commit 86ec1cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Roumen/Sitemap/Sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ public function __construct(array $config)
if (!$this->model->testing)
{
// keep public assets updated (even if they are not published)
Artisan::call('vendor:publish', ['--force' => true, '--provider' => 'Roumen\Sitemap\SitemapServiceProvider', '--tag'=>'public']);
@Artisan::call('vendor:publish', ['--force' => true, '--provider' => 'Roumen\Sitemap\SitemapServiceProvider', '--tag'=>'public']);
@Artisan::call('vendor:publish', ['--force' => true, '--provider' => 'Roumen\Sitemap\SitemapServiceProvider', '--tag'=>['public']]);

// keep views updated (only if they are published)
if (file_exists(base_path('resources/views/vendor/sitemap/')))
{
Artisan::call('vendor:publish', ['--force' => true, '--provider' => 'Roumen\Sitemap\SitemapServiceProvider', '--tag'=>'views']);
@Artisan::call('vendor:publish', ['--force' => true, '--provider' => 'Roumen\Sitemap\SitemapServiceProvider', '--tag'=>'views']);
@Artisan::call('vendor:publish', ['--force' => true, '--provider' => 'Roumen\Sitemap\SitemapServiceProvider', '--tag'=>['views']]);
}
}
}
Expand Down

0 comments on commit 86ec1cc

Please sign in to comment.