Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

user86516512's avatar

Local environment to test API from Android/iOS?

How would I go about setting up a local Laravel environment so I can test my API with Android/iOS emulators?

The last time I tried it, there were a number of major issues that made it either impossible or extremely time-taxing to get around in order to get it to work.

0 likes
2 replies
martinbean's avatar

@user86516512 What’s the issue? Use something like Homestead to run your API locally, and make the base API URL configurable in your Android and iOS apps. When you build your apps locally, have it use the base URL of your local API. When you build your apps for release, have it use your production URL.

Please or to participate in this conversation.