Hi all, I need to build a webservice between two laravel applications.
APP1 (local IP 127.0.1.1 and DB1 on .env file) APP2 (local IP 127.0.1.2 and DB2 on .env file)
In my APP1 there is a controller (api/token) that use DB facade to extract from my database some informations. This route work fine if I open it by http://127.0.1.1/api/token.
In my APP2 I have a call by CURL on that route but DB facade connect to the database of APP2 and doesn't found the table of the request.
How it is possible? It seems that the static method is execute on the APP2 server and its .env informations.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community