jbohme/laravel-environment-selector

This is a package for selecting one of multiple environments in a laravel application.

1.0.1 2022-03-02 20:24 UTC

This package is auto-updated.

Last update: 2024-09-29 06:20:24 UTC


README

Latest Stable Version Total Downloads License PHP Version Require

This package is intended to make it easier to choose the .env. You can have ".env.testing", ".env.development" among others.

Installation

Install the package through composer:

composer require jbohme/laravel-environment-selector

You must publish a project configuration with:

php artisan vendor:publish --tag=laravel-env-selector
php artisan config:cache

After this the env-selector.json was created in the root.

Usage

Run the command to modify bootstrap/app.php to enable environment selection.

php artisan publish-env-selector

Change the environment in the env-selector.json file.

License

Laravel Horizon is open-sourced software licensed under the MIT license.