title: Laravel 5 - redirect to HTTPS
body: <p>Working on my first Laravel 5 project and not sure where or how to place logic to force HTTPS on my app. The clincher here is that there are many domains pointing to the app and only two out of three use SSL (the third is a fallback domain, long story). So I'd like to handle this in my app's logic rather than .htaccess.</p>
  
  <p>In Laravel 4.2 I accomplished the redirect with this code, located in <code>filters.php</code>:</p>
  
  <pre><code>App::before(function($request)
  {
      if( ! Request::secure())
      {
          return Redirect::secure(Request::path());
      }
  });
  </code></pre>
  
  <p>I'm thinking Middleware is where something like this should be implemented but I cannot quite figure this out using it.</p>
  
  <p>Thanks!</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>If you are using Cloudflare like I am, this is accomplished by adding a new Page Rule in your control panel. </p>