We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 227b0fb commit 7d04a0fCopy full SHA for 7d04a0f
src/Bootstrap/LoadEnvironmentVariables.php
@@ -31,7 +31,11 @@ final class LoadEnvironmentVariables implements BoostrapperContract
31
public function bootstrap(Application $app): void
32
{
33
if (class_exists(Dotenv::class)) {
34
- $app->make(BaseLoadEnvironmentVariables::class)->bootstrap($app);
+
35
+ if (file_exists($app->environmentFilePath())) {
36
+ $app->make(BaseLoadEnvironmentVariables::class)->bootstrap($app);
37
+ }
38
39
$app->make(BuildLoadEnvironmentVariables::class)->bootstrap($app);
40
}
41
0 commit comments