I'm quite new in Laravel.
I'm working on an existing Laravel 5.8 project. I installed it locally with HomeStead.
I noticed a strange behaviour on redirects: considering my homepage is http://project.test/, when there is a redirection, say to /redirected, Laravel sets the location to http://project.test/://project.test/redirected! As I tried to figure out wat was going on, I saw that the url('/') Laravel function gives me ://project.test/ instead of http://project.test/.
request()->getSchemeAndHttpHost() gives http://project.test/.
I have the same problem with the static resources.
I certainly missed something, but so far I couldn't find any information about this.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire