vkoori/env-reloader

Overwriting the laravel/lumen environment without restarting the server.
11
Install
composer require vkoori/env-reloader
Maintainer: vkoori

Installation

composer require vkoori/env-reloader

Doc

This package causes the code inside the .env file to be rewritten. After changing the .env, the configuration of the application will also be updated.

Sample

dump(env('APP_ENV'));
Reload::env(
    data: [
        'APP_ENV' => 'production'
    ]
);
dump(env('APP_ENV'));