lundi 11 janvier 2016

Best practices about paths while working localhost

I use laravel 5 to build some of my projects. In my controller usually I use redirect to a specific path like:

return redirect("http://localhost/myproject/public/all-posts");

I would like to build absolute paths while working localhost so as all of the url works fine when the project is going to be uploaded to the server. Thank you so much for your attention and participation.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire