laravel-zero / laravel-zero

A PHP framework for console artisans

Home Page:https://laravel-zero.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default environment should be proudction

insperedia opened this issue · comments

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.

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.