Maybe start by explaining your dev set up.
Oct 15, 2022
5
Level 2
Api requests on same server
After sending a curl/Http POST request to a secondary website on localhost, Laravel uses the database credentials of the initiator website also on localhost.
I don't understand why this is happening, maybe something to do with the session since they are on the same server? How can I test the APIs on localhost
Level 102
@Udev ok. I Don't use xampp. But I've heard of people with problems like this. Try caching config on both sites (remember to undo caching when you are done testing)
php artisan config:cache
Please or to participate in this conversation.