vkoori / env-reloader by vkoori

Overwriting the laravel/lumen environment without restarting the server.
5
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-04-18 15:16:30
Package Statistics
Total Downloads: 5
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'));