vkoori/env-reloader

Overwriting the laravel/lumen environment without restarting the server.
11
Install
composer require vkoori/env-reloader
Latest Version:1.1.0
PHP:>=8.1
Last Updated:Mar 23, 2023
Links: GitHub  ·  Packagist
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'));

Related Packages

thadico-platform/org-module

Module for synchronized users

2,007 0
keyhoang/php-consul-env

Create .env.consul with consul replace .env

19 0
keyhoang/org-module

Module for synchronized users

1,419 0
jlcd/api-cielo30-laravel

Laravel Provider for Cielo's 3.0 API

224,633 17