title: PUT method inside Laravel Controller
body: <p>I can't seem to assign a function inside my controller for a PUT action. I tried a PUT request on <code>/settings</code> but I got a 403 Forbidden.</p>
  
  <p>I've declared <code>Route::controller('settings', 'SettingsController')</code> in <code>routes.php</code>:</p>
  
  <pre><code>&lt;?php
  class SettingsController extends BaseController {
  
      public function getIndex() {
          $setting = Auth::user()-&gt;setting;
          return Response::json($setting);
      }
  
      public function putIndex() {
          $setting = Auth::user()-&gt;setting;
          $setting-&gt;update(Input::all());
      }
  }
  </code></pre>