I'm trying to set up a local Laravel Homestead (5.3) environment for my API. I want to be able to hit the API locally through my Android app.
I've set everything up, including getting the Android app to trust the server's certificate, but now I'm getting the following issue:
The app trusts my server's domain (in my case, homestead.test
). The problem is, my server is returning all assets with the IP address of the server, which is 192.168.10.10
, so all assets return in the form of:
https://192.168.10.10/storage/img/posts/6/thumbnails/1.jpeg
For whatever reason, the Android app doesn't trust this IP as I guess I don't have the certificate for it set up. Instead, I need it to return with the domain, homestead.test
, so it looks like:
https://homestead.test/storage/img/posts/6/thumbnails/1.jpeg
In my hosts file (Windows), I have this already:
192.168.10.10 homestead.test
How can I make this change? I've tried changing APP_URL
to https://homestead.test
in the .env file, but that doesn't seem to have changed anything.
What am I missing?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3rixLhK
via IFTTT
Aucun commentaire:
Enregistrer un commentaire