title: Using one Laravel app from different domains - building urls issue
body: <p>I searched for my issue in so many ways, but I don't seem to find the correct case, so I'm asking here.</p>
  <p>I have a Laravel app which is installed on a server and everything works correct. The domain is set as HTTP only and is configured from AWS. However we need to have another domain which should work only from HTTPS. The HTTP domain is pointing to the server instance and the HTTPS one is pointing to a CloudFront distribution with origin the HTTP domain. The issue is that when I open the HTTPS domain, all of the links and images are loaded from the HTTP domain.</p>
  <p>To be more concrete, let's say I have <code>http://mysite-notsecure.example.com</code> and <code>https://mysite-secure.example.com</code>.
  When I open <code>http://mysite-notsecure.example.com</code> everything works as it should and there are no issues. However when I open <code>https://mysite-secure.example.com</code> the site loads, also files like <code>app.js</code> and <code>app.css</code> load with the correct host, but things like fonts, images, links, etc, load from <code>http://mysite-notsecure.example.com</code>.</p>
  <p>Because most of the urls are built with the <code>url()</code> function, I think the issue has something to do with <code>APP_URL</code>, which was first set to <code>http://mysite-notsecure.example.com</code>, but when I added the new domain, I set it to empty (<code>APP_URL=</code>),
  however the urls are still built the same way (I cleared config cache).
  What should I do in order for my site to build the urls according to the current host?
  I don't need any other change for the two domains. They should load everything exactly the same, only the host should remain and not redirect to the other domain.</p>