vkoori / env-reloader by vkoori

Overwriting the laravel/lumen environment without restarting the server.
10
0
1
Package Data
Maintainer Username: vkoori
Maintainer Contact: kooroshsafeashrafi@gmail.com (Koorosh SafeAshrafi)
Package Create Date: 2023-03-23
Package Last Update: 2023-03-23
Language: PHP
License: Unknown
Last Refreshed: 2024-12-23 03:13:55
Package Statistics
Total Downloads: 10
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

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