diff --git a/app/Bootstrap/LoadConfiguration.php b/app/Bootstrap/LoadConfiguration.php index 2d85fff2d..0ab14908c 100644 --- a/app/Bootstrap/LoadConfiguration.php +++ b/app/Bootstrap/LoadConfiguration.php @@ -55,5 +55,14 @@ public function handle() $this->app->config->set( $this->configuration->getConfigurationBase() ); + $config = $this->app->config; + + $this->app->detectEnvironment(function () use ($config) { + return $config->get('app.env', 'production'); + }); + + date_default_timezone_set($config->get('app.timezone', 'UTC')); + + $loaded = true; } }