From 593bebd5e485c0ade349c4a46ac6b7863ee8cb81 Mon Sep 17 00:00:00 2001 From: mnoskov Date: Fri, 4 Jun 2021 19:14:06 +0500 Subject: [PATCH] fix install --- core/src/AbstractLaravel.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/AbstractLaravel.php b/core/src/AbstractLaravel.php index 31dd8f5e93..f12a2d854b 100644 --- a/core/src/AbstractLaravel.php +++ b/core/src/AbstractLaravel.php @@ -150,7 +150,11 @@ public function __construct() throw new \Exception('Unable to load the "app" configuration file.'); } - $this['env'] = $this['config']->get('app.env', 'production'); + if (defined('IN_INSTALL_MODE')) { + $this['env'] = 'install'; + } else { + $this['env'] = $this['config']->get('app.env', 'production'); + } date_default_timezone_set($config->get('app.timezone', 'UTC')); mb_internal_encoding('UTF-8');