Skip to content

Commit 72a3a5b

Browse files
committed
✨ Added conditional init of env files
1 parent d8e3ce3 commit 72a3a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leaf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ require __DIR__ . '/Config/bootstrap.php';
3131
| Quickly use our environment variables
3232
|
3333
*/
34-
\Dotenv\Dotenv::create(__DIR__)->load();
34+
file_exists(__DIR__ . "/.env") && \Dotenv\Dotenv::create(__DIR__)->load();
3535

3636
/*
3737
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)