jbohme / laravel-environment-selector
This is a package for selecting one of multiple environments in a laravel application.
Installs: 136
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jbohme/laravel-environment-selector
Requires
- php: 7.*|8.*
This package is auto-updated.
Last update: 2025-09-29 02:58:56 UTC
README
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.