vkoori/env-reloader

There is no license information available for the latest version (1.1.0) of this package.

Overwriting the laravel/lumen environment without restarting the server.

1.1.0 2023-03-23 11:12 UTC

This package is auto-updated.

Last update: 2024-10-23 14:16:22 UTC


README

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'));