I currently use Laragon in development and have a Laravel project whose URL is structured as follows
example.test api.example.testI have developed the api and tested using Postman but now I need to test using the android app. In Postman, I can hit the api.example.test endpoints without any issues.
In the Android app, I am using Retrofit but I would need to provide a BASE_URL that can be used to build other requests. I know for XAMPP, the BASE_URL looks like this
private static final String BASE_URL = "http://my_ip_address/path/to/project/folder/relative/to/server/root".
This ends up looking like this for a typical Laravel project
private static final String BASE_URL = "http://192.168.0.*/example/public/api" where /api is a prefix that Laravel adds automatically to api routes.
But since I am using Laragon, I don't even know how to write the BASE_URL because I have modified the Laravel project to route api calls to the api.example.test sub-domain.
I have tried private static final String BASE_URL = "http://192.168.0.*/example/public/v1/" where v1 is the prefix I use to indicate the api version.
Please help!!!