Skip to content

Overwriting the laravel/lumen environment without restarting the server.

Notifications You must be signed in to change notification settings

vkoori/env-reloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Overwriting the laravel/lumen environment without restarting the server.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages