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.