title: laravel 5.7, haproxy and ssl
body: <p>my project works locally (dev) like a charm, but in production, where I did set inside the .env file APP_URL as <a href="https://myurl" rel="nofollow noreferrer">https://myurl</a>, generated links are in http, so I get the mixed content problem. How to force ssl? App is behind Haproxy, which terminates SSL connection, inside a LXC container. Here's my TrustedProxies middleware:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Middleware;
  
  use Illuminate\Http\Request;
  use Fideloper\Proxy\TrustProxies as Middleware;
  
  class TrustProxies extends Middleware
  {
      /**
       * The trusted proxies for this application.
       *
       * @var array
       */
      protected $proxies = [
          '*'
      ];
  
      /**
       * The headers that should be used to detect proxies.
       *
       * @var int
       */
      protected $headers = Request::HEADER_X_FORWARDED_ALL;
  }
  </code></pre>
  
  <p>any help?
  Thanks</p>