samedi 19 septembre 2015

Laravel 5: Moving current site to multi regional website ( /in, /eu, etc)

My current site url is www.mysite.com and I wish to create a multi-regional website like www.mysite.com/in, www.mysite.com/eu, etc for multiple countries.

I am using larval 5.1 and I know the route::group method to do so.

But my code uses referential url all over the site(e.g. /home, /about-us) and I wish to change it to /in/home, /in/about-us, etc without hard coding the site url in every view or js file with the url country segment.

Is there a way to force all the links to traverse through the country segment?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire