You do not need to use .env for everything. There are several options.
Option 1 - Use Only .env for Variable
'default' => env('DB_CONNECTION'),
Option 2 - use only .env for the variable, but by default for the system if it does not exist
'default' => env('DB_CONNECTION', 'mysql'),
Option 3 - just copy your variable and don't set it with .env
'default' => 'mysql',
Option 2 is probably best for most configuration options. You still define (and commit) your configuration option in your git repository, but you can easily override it in any .env file in the future if you want.
Option 1 is best for passwords, application keys, etc. - so they are never tied to your git repository.
Option 3 for several configuration variables that, as you know, will never be changed.
Note. Cascading the Laravel 4 configuration folder is no longer available.
source share