Skip to content

jbohme/laravel-environment-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Environment Selector

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.