Default environment should be proudction
insperedia opened this issue · comments
Oleg Lemesenko commented
The default environment should be "production" as it is in the original Laravel code.
The reason for this is that ConfirmableTrait protects the database in production.
If we accidentally run tests on with production .env RefreshDatabase trait will drop the database.
Owen Voke commented
The default is development so that you can easily use all commands when developing your application, when running app:build
to create a production Phar, this process sets app.env
to production
. 🤷🏻 As far as I know, Laravel Zero is intended to be used with Phars in production.