title: Laravel 4 DELETE / PUT being blocked
body: <p>All of my DELETE and PUT requests get blocked (405). I have tried putting headers in the before and after filters:</p>
  
  <pre><code>App::before(function($request)
  {
      header('Access-Control-Allow-Origin', '*');
      header('Allow', 'GET, POST, OPTIONS, PUT, DELETE');
      header('Access-Control-Allow-Headers', 'Origin, Content-Type, Accept, Authorization, X-Request-With');
      header('Access-Control-Allow-Credentials', 'true');
  });
  
  
  App::after(function($request, $response)
  {
      $response-&gt;headers-&gt;set('Access-Control-Allow-Origin', '*');
      $response-&gt;headers-&gt;set('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
      $response-&gt;headers-&gt;set('Access-Control-Allow-Headers', 'Origin, Content-Type, Accept, Authorization, X-Requested-With');
      $response-&gt;headers-&gt;set('Access-Control-Allow-Credentials', 'true');
      $response-&gt;headers-&gt;set('Access-Control-Max-Age','86400');
      return $response;
  });
  </code></pre>
  
  <p>I have tried adding .htaccess rules to allow them in the laravel public folder:</p>
  
  <pre><code>&lt;Limit GET POST PUT DELETE HEAD OPTIONS&gt;
      Order allow,deny
      # You might want something a little more secure here, this is a dev setup
      Allow from all
  &lt;/Limit&gt;
  &lt;LimitExcept POST PUT DELETE HEAD OPTIONS&gt;
      Order deny,allow
      Deny from all
  &lt;/LimitExcept&gt;
  </code></pre>
  
  <p>I have tried using the constructor in the resource controller and nothing seems to actually allow either request types. I am quickly running out of ideas here, I am using apache and kendo UI making the AJAX requests. My routes look like:</p>
  
  <pre><code>// PUBLIC
  Route::group(array('prefix' =&gt; 'api/v1'), function()
  {
      Route::post('login', array('uses'=&gt;'UsersController@login'));
      Route::get('status', array('uses'=&gt;'UsersController@status'));
  });
  
  // PROTECTED BY SENTRY
  Route::group(array('prefix' =&gt; 'api/v1', 'before' =&gt; 'auth'), function()
  {
      Route::get('logout', array('uses'=&gt;'UsersController@logout'));
      Route::get('users/whoami', array('uses'=&gt;'UsersController@whoami'));
      Route::resource('users', 'UsersController');
      Route::resource('programs', 'ProgramsController'); // THIS ROUTE KEEPS 405'ING ME
  });
  </code></pre>
  
  <p>Nothing too fancy in the filters files, just using Sentry2 for user management. Any help would be greatly appreciated!</p>