Skip to content

Commit

Permalink
try to read env file from specified path
Browse files Browse the repository at this point in the history
  • Loading branch information
crysg committed Jan 5, 2025
1 parent c0813d0 commit 600d3c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);

if ($_ENV['ENV_FILE_PATH'] != "") {
$app()->loadEnvironmentFrom($_ENV['ENV_FILE_PATH']);
}

/*
|--------------------------------------------------------------------------
| Bind Important Interfaces
Expand Down

0 comments on commit 600d3c9

Please sign in to comment.