FEATURE: move widget and template dir installation into middleware, optimize middleware groups

This commit is contained in:
Michal Kváček
2016-09-25 12:42:26 +02:00
parent d7b60690b2
commit 8f4e6268a4
12 changed files with 184 additions and 123 deletions
+6 -1
View File
@@ -1,7 +1,6 @@
<?php
namespace App\Helpers;
use App\Models\Module;
class CurrentTemplate
@@ -20,6 +19,12 @@ class CurrentTemplate
self::$template = Module::where('is_template', true)
->where('enabled', true)
->first();
if (self::$template) {
self::$template->module_settings = json_decode(self::$template->module_settings);
}
self::$initialized = true;
}
return self::$template;