From 86ec1cc5c1f3bd0b86f3431049d5781a8d8ae1d3 Mon Sep 17 00:00:00 2001 From: Roumen Damianoff Date: Sun, 7 Feb 2016 19:02:43 +0200 Subject: [PATCH] wip #90 --- src/Roumen/Sitemap/Sitemap.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Roumen/Sitemap/Sitemap.php b/src/Roumen/Sitemap/Sitemap.php index 848b0fd..03bcb66 100644 --- a/src/Roumen/Sitemap/Sitemap.php +++ b/src/Roumen/Sitemap/Sitemap.php @@ -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']]); } } }