Managing your Laravel 5 environment (.env)
This package allows you to manage your ignored environment configuration when you are running a composer install / update or even manually call the command. It works when storing the .env.example file under the application root. Other keys are copied without change., (*1)
Installation
Run the following command from your terminal:, (*2)
bash
composer require "indragunawan/laravel-env-handler: 0.*", (*3)
or add this to require section in your composer.json file:, (*4)
``` json
{
"require": {
"indragunawan/laravel-env-handler": "0.*"
}
}, (*5)
run ```composer update```
Then add Service provider to `config/app.php`
``` php
'providers' => [
// ...
'IndraGunawan\LaravelEnvHandler\EnvHandlerServiceProvider'
]
Usage
via command line, (*6)
$ php artisan env:update
Options
$ php artisan env:update --force
execute the update even though there are no new environment parameters, (*7)
Credits
This package is largely inspired by this., (*8)