Good Day, I am a beginner in android development and laravel. I am creating a mobile-web application. I am using laravel in my Web app and I have this problem on generating the url that I should use when I retrieve json data for my android app. When I run it on localhost (http://localhost:8000/getAllLocations), I can view the json. but when I run it in using my ip address (192.168.x.xx/getAllLocations), it gives me an Object not found error.
Below are screenshots of my controller, route.php, the json result that I want to get, and the error I got after using the url: 192.168.x.xx/getAllLocations.
Please help me.