From 1ecef555eff9df77e63be1f89f2cb9c307f9a82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Mon, 25 Sep 2017 14:37:30 +0200 Subject: [PATCH] FIX: fix minor bug in content overview and module installation --- app/Console/Commands/Modules/InstallModule.php | 2 ++ app/Console/Commands/SetTemplate.php | 2 +- resources/views/admin/content/_partials/overviewRow.blade.php | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/Modules/InstallModule.php b/app/Console/Commands/Modules/InstallModule.php index 3f2836c3..61477a71 100644 --- a/app/Console/Commands/Modules/InstallModule.php +++ b/app/Console/Commands/Modules/InstallModule.php @@ -67,6 +67,8 @@ class InstallModule extends Command Cache::forget('enabled-modules'); Cache::forget('module-handler-to-id-enumeration'); + exec('php artisan module:enable '.$name); + exec('php artisan cache:clear'); exec('composer dump-autoload'); // inform user diff --git a/app/Console/Commands/SetTemplate.php b/app/Console/Commands/SetTemplate.php index a196257c..3fcacca5 100644 --- a/app/Console/Commands/SetTemplate.php +++ b/app/Console/Commands/SetTemplate.php @@ -74,7 +74,7 @@ class SetTemplate extends Command // run again artisan for publishing resources // it cannot be done using $this->call, because we need to load different template into service providers if ($publish) { - exec('php artisan vendor:publish'); + exec('php artisan template:publish'); } } } diff --git a/resources/views/admin/content/_partials/overviewRow.blade.php b/resources/views/admin/content/_partials/overviewRow.blade.php index 12ed6919..1c955437 100644 --- a/resources/views/admin/content/_partials/overviewRow.blade.php +++ b/resources/views/admin/content/_partials/overviewRow.blade.php @@ -45,7 +45,9 @@ @lang($page->module->name)
- ({{$page->templateModel->name}}) + @if(!is_null($page->templateModel)) + ({{$page->templateModel->name}}) + @endif
@date($page->created_at)