If you set the url parameter to the domain, does that work?
Oct 16, 2015
7
Level 1
help with Laravel URL helper function
Hey everyone, I'm having some trouble with the url() helper function.
It seems to always be using 'localhost' as the domain name, but I can't seem to figure out why that is. My app.php file is as follows:
'url' => env('APP_URL', 'journal.willng.me'),
and, the corresponding env variable is appropriately set (ie: not localhost). To further demonstrate, have a look at this screenshot of tinker. It pretty clearly describes my problem.

See what I mean? does the url() helper draw the domain from somewhere else?
Please or to participate in this conversation.
