-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laravel 9 command serve does not use custom .env file #40978
Comments
Git repository with the code used to take the screenshots: |
Thought this issue affects |
I actually can't recreate the issue. Does your |
Hello @taylorotwell by adding Thank you! |
Description:
command
php artisan serve --env=testing
seems not to be working since it is still using default.env
file instead.Steps To Reproduce:
With mysql running using default .env file (configured against mysql)
With mysql stopped using custom .env.testing file (configured against sqlite)
With mysql stopped moving .env.testing to .env file
Another easy test is not having a
.env
file at all and specify custom one:This time results into a err 500
Thanks
The text was updated successfully, but these errors were encountered: