I'm working on backed server using laravel php, basically it serves api for both web app and mobile app. The problem is we use subdomains, eg:- each client has subdomain url(client.localhost) whenever he logs in. it works well on same host system but on other devices like android phone it does'nt server as localhost. As we can't use subdomain with ip. even if we expose that ip.
The question is how can I use this locally to server api for mobile app(andriod). for testing purpose. instead of push things to real dev server.