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.
Run the following command from your terminal:
composer require "indragunawan/laravel-env-handler: 0.*"
or add this to require section in your composer.json file:
{
"require": {
"indragunawan/laravel-env-handler": "0.*"
}
}
run composer update
Then add Service provider to config/app.php
'providers' => [
// ...
'IndraGunawan\LaravelEnvHandler\EnvHandlerServiceProvider'
]
via command line
$ php artisan env:update
$ php artisan env:update --force
execute the update even though there are no new environment parameters
This package is largely inspired by this.