Currently I am developing a site for a client using Laravel 5.1.
On the testing server it is http://ift.tt/1TNh8Bq
, but on the clients server it will just be example.com/
.
Is there a way to set the sites base url to point to /sites/project/
instead of the root when using our testing server, and then using the root as the base url on the clients server? Because currently I have to go and put in the base url before every link and change it every time I change servers - which is bad practice.
EDIT
I mainly want to do this when using assets, so the link to the asset points to the correct folder. Currently it points to example.com/assets/...
and on the testing server it points to the same thing, when it should be pointing to http://ift.tt/27mzTG6...
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire