I don't like to bump posts but this has me well and truly beaten. Six hours spent scratching my head and no joy what-so-ever!
Help meeee!
Hello peeps.
I decided to muck about with the idea of microservices. So, baby steps, I created a Laravel app and a Lumen app with an API for it to consume.
I'm using Laragon (couldn't get Homestead to behave on my PC at home) so they're both running under Apache and use databases on the same instance of SQL Server.
Something odd is happening!
The Lumen app's database connection is fine. It runs migrations properly and uses Eloquent to grab a collection. If I hit the endpoint in a browser or with Postman it returns exactly what I expect.
But, when using Guzzle from the Laravel app the Lumen app uses the Laravel app's database connection!
I'm flumoxed, Anybody got an ideas about what might be happening here?
Thanks artisans! Pobble
Please or to participate in this conversation.