I'm trying to use Laravel inside of a web IDE's virtual machine (Codio in this case). They use a custom port for apache (port 80 is used for their own stuff), so in this case we use port 3000. When using Redirect::to();
for example, the custom port 3000 is lost.
I'm not sure if something needs to be done in the .htaccess file, or if this is a bug inside of Laravel.
Any help would be appreciated.
Have you set the port in your app.url
configuration?
You're talking about the url
setting in config/app.php
? If so, why would that matter? It's description states that this is for running php artisan
tasks.
Updated title, but left original post alone. It isn't just Redirect::to()
that is being problematic. It seems that anything Laravel is doing, such as {{{ asset(...) }}}
is ignoring the port.
I tracked it down and it looks like it's an issue with Codio's new virtual machines. Symfony expects HTTP_HOST
to contain any non standard ports, which makes sense, but they aren't setting it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community