Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Change default .env file name #358

Answered by underdpt
underdpt asked this question in Q&A
Discussion options

You must be logged in to vote

My fault, found it just after submitting:

Add this to bootstrap/app.php:

$app->useEnvironmentPath('/path/to/env')
$app->loadEnvironmentFrom('env.file');

before returning the application ($app).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by owenvoke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant