title: Accessing route::resource using https in Laravel 4
body: <p>To force HTTPS  on a named route, the Laravel docs say do the following:</p>
  
  <pre><code>Route::get('foo', array('https', function()
  {
      return 'Must be over HTTPS';
  }));
  </code></pre>
  
  <p>Now, on my first Laravel app, I have been using resource controllers. I don't think I will be using them for my second app, going on what I have since read, but for now they sit happily in my router.php file.</p>
  
  <p>I wanted to force the back office part of my app to use HTTPS. So, my opening gambit was as follows:</p>
  
  <pre><code>Route::resource('backoffice', array('https','BackofficeController'));
  </code></pre>
  
  <p>Laravel didn't like the array.</p>
  
  <p>So, instead I thought I would try putting at the next parameter:</p>
  
  <pre><code>Route::resource('backoffice', 'BackofficeController', 'https'));
  </code></pre>
  
  <p>But the next parameter needs to be an array. I could find no documentation on this, but I converted it to array. It still didn't work.</p>
  
  <pre><code>Route::resource('backoffice', 'BackofficeController', array('https')));
  </code></pre>
  
  <p>I even tried:</p>
  
  <pre><code>Route::resource('backoffice', 'BackofficeController', array('https'=&gt;true)));
  </code></pre>
  
  <p>However, that failed too. So, how do I force a resource to use https?</p>