title: Laravel route() returning naked IP address instead of domain
body: <p>Didn't catch this on my local machine but I've noticed some of my pages returning the naked IP address of my web server instead of the domain name. Example:</p>
  
  <p><code>route('homepage')</code> will sometimes return <code>192.XX8.X.2XX</code> or <code>192.XX8.X.2XX/index.php</code> or <code>domain.com/index.php</code>. My pages are cached upon the first visit and there's a rough 50% chance the things will come out weird for all URLs on the page.</p>
  
  <p>Is there an explanation for this weird behavior and how would I fix it? It's quite a concern since Googlebot is listing three additional duplicate copies of my site.</p>
  
  <p>Note: I'm also using the LaravelLocalization package for my routes: <a href="https://github.com/mcamara/laravel-localization" rel="noreferrer">https://github.com/mcamara/laravel-localization</a></p>
  
  <p>I'm also running this app under Laravel Forge (Nginx)</p>