Commit a075e380 authored by huy.dang's avatar huy.dang

fix config:cache issue

parent 497ab143
...@@ -169,4 +169,11 @@ return [ ...@@ -169,4 +169,11 @@ return [
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
*/ */
'enable-theme-overrides' => false, 'enable-theme-overrides' => false,
/*
|--------------------------------------------------------------------------
| Check if asgard was installed
|--------------------------------------------------------------------------
*/
'is_installed' => env('INSTALLED', false)
]; ];
...@@ -69,7 +69,7 @@ class CoreServiceProvider extends ServiceProvider ...@@ -69,7 +69,7 @@ class CoreServiceProvider extends ServiceProvider
public function register() public function register()
{ {
$this->app->singleton('asgard.isInstalled', function () { $this->app->singleton('asgard.isInstalled', function () {
return true === env('INSTALLED', false); return true === config('asgard.core.core.is_installed');
}); });
$this->app->singleton('asgard.onBackend', function () { $this->app->singleton('asgard.onBackend', function () {
return $this->onBackend(); return $this->onBackend();
......
...@@ -169,4 +169,11 @@ return [ ...@@ -169,4 +169,11 @@ return [
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
*/ */
'enable-theme-overrides' => false, 'enable-theme-overrides' => false,
/*
|--------------------------------------------------------------------------
| Check if asgard was installed
|--------------------------------------------------------------------------
*/
'is_installed' => env('INSTALLED', false)
]; ];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment