Skip to content

Commit 4ae8b52

Browse files
committed
Fix env loading
1 parent 201266c commit 4ae8b52

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Configuration/Loader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,12 @@ public function boot(): Loader
176176

177177
$container = Capsule::getInstance();
178178

179+
// Load the env configuration first
179180
$this->createConfiguration(EnvConfiguration::class, $container);
180181

182+
// Load the .env or .env.json file
183+
$this->loadEnvfile();
184+
181185
// Configuration of services
182186
$loaded_configurations = $this->createConfigurations(
183187
array_merge([CompassConfiguration::class], $this->configurations()),

0 commit comments

Comments
 (0)