My laravel 4 project has multiple environments set up.
The environments setup are: development is called 'development' and production is called 'production'. In my app/config folder, I have two extra folders. One for each name of the environment.
See screenshot:
Inside these folders I have separate config files for database.php and app.php. These are working as expected. Laravel uses my local database configuration when running locally and production when running live.
Now, I've added a new package which requires a config file. This resides in /app/config/packages/greggilbert/config.php
.
I need to be able to set different config files the same way I do for the database. So, I assumed creating the same file structure in /development
or /production
would work, but this does not seem to be the case.
Here is a new screenshot:
app/config/packages/<vendor>/<package_name>/<environment>/config.php
– Quasdunk