My Laravel VueJS Application work fine in local server. But when I uploaded it to the shared hosting, it gives problem with url.
In local environment, the code works fine with:
axios.get('/api/get/users')
But, in production server, since it is shared hosting, codes need to be change like:
axios.get('http://www.example.com/public/myApp/public/api/get/users')
Is there any way to use same url on local & production server without changing?