vkoori / env-reloader
Overwriting the laravel/lumen environment without restarting the server.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/vkoori/env-reloader
Requires
- php: >=8.1
This package is auto-updated.
Last update: 2025-09-23 16:13:42 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'));