Laravel PHPUnit Test Uses production configuration by Default

I came across an interesting problem today. I was Using laravel’s PHPUnit test framework to test a Eloquent class in my local environment. When I ran simple tests, I got that laravel eloquent find i was always returning null. Printing query log and running them was not helping.

Read More »