Maybe provide some code on how you are consuming the project's A API?
Sep 15, 2022
17
Level 3
Local API returning internal data instead of external data
I have two Laravel projects, in this context, I will call project A and project B. The two projects have Users mode. I created an API in Project A that will retrieve users' details that will be consumed by project B. On project B, when I call the API, it never leaves Project B, every data returned by the API is still Project B. Example: Project A = Users: [user1, user2, user3, ..., user n] Project B = Users: [] Project B calls API to retrieve users from Project A, data returned will be [].
Help, thanks
Level 3
I fixed it. I run php artisan config:cache on both projects and it worked.
Please or to participate in this conversation.