in config/database.php
[code] .... .... 'default' => 'sqlite_local', .... .... [/code]
or use the same name for each of them.
Hi! I have noticed the same problem: Environment configuration ovverides instead of cascading
I suppose that it will be fixed since the "config" path has changed twice in the recent commits in L5-dev.
I am suffering same issue with latest Laravel 5. Only one environment config is used regardless of what is the actual environment value.
It is critical defect as unit testing is not working. Having single environment in production is acceptable but not in dev machine.
Anyone able to fix it or suggest workaround?
I managed to build a dirty workaround also. I added below to my config/database.php
'default' => $app->environment()=='testing'?'sqlite':'mysql',
This does manual environment detection and is using different database when unit testing.
I got a good answer on this over on StackOverflow: http://stackoverflow.com/a/27986561/1210797
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community