samedi 22 septembre 2018

Laravel 5 - how to change route() and assets() url

When I use the following helpers:

assets('css/app.css');
route('home');

..it generates this URL: "http://myapp.vagrant/css/app.css"

However, I want to change the URL to generate "http://192.168.1.134:8088" as, in my case, a network IP is what I need.

I can find where "myapp.vagrant" is set though. I've change Homestead.yaml and .env files, I've destroyed then vagrant up again. I've tried grep to locate where else this domain might be defined.

Any suggestions? The URL http://192.168.1.134:8088 is pointing correctly to the site but the urls that are generated are using the wrong URL (myapp.vagrant)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire