title: Laravel 4 throwing MethodNotAllowedHttpException
body: <p>I am making a simple registration form that then submits data to my database. However, the problem that I am running into is that the code that should submit the info to the database is not working. </p>
  
  <p>Here's the form that I made using Twitter Bootstrap</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
      &lt;div class="modal-body"&gt;
          &lt;div class="well"&gt;
              &lt;div id="myTabContent" class="tab-content"&gt;
                  &lt;div class="tab-pane active in" id="login"&gt;
                      &lt;form method="POST" action='/adding_to_table' class="form-horizontal"&gt;
                          &lt;fieldset&gt;
                              &lt;div id="legend"&gt;
                                  &lt;legend class=""&gt;Create Your Account&lt;/legend&gt;
                              &lt;/div&gt;
                              &lt;div class="control-group"&gt;
                                  &lt;!-- Username --&gt;
                                  &lt;label class="control-label"  for="firstname"&gt;First Name&lt;/label&gt;
                                  &lt;div class="controls"&gt;
                                      &lt;input type="text" id="first_name" name="firstname" placeholder="" class="input-xlarge"&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
                              &lt;div class="control-group"&gt;
                                  &lt;!-- Username --&gt;
                                  &lt;label class="control-label"  for="lastname"&gt;Last Name&lt;/label&gt;
                                  &lt;div class="controls"&gt;
                                      &lt;input type="text" id="last_name" name="lastname" placeholder="" class="input-xlarge"&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
                              &lt;div class="control-group"&gt;
                                  &lt;!-- Username --&gt;
                                  &lt;label class="control-label"  for="email"&gt;E-mail&lt;/label&gt;
                                  &lt;div class="controls"&gt;
                                      &lt;input type="text" id="e_mail" name="email" placeholder="" class="input-xlarge"&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
                              &lt;div class="control-group"&gt;
                                  &lt;!-- Username --&gt;
                                  &lt;label class="control-label"  for="username"&gt;Username&lt;/label&gt;
                                  &lt;div class="controls"&gt;
                                      &lt;input type="text" id="username" name="username" placeholder="" class="input-xlarge"&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
  
                              &lt;div class="control-group"&gt;
                                  &lt;!-- Password--&gt;
                                  &lt;label class="control-label" for="password"&gt;Password&lt;/label&gt;
                                  &lt;div class="controls"&gt;
                                      &lt;input type="password" id="password" name="password" placeholder="" class="input-xlarge"&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
                              &lt;div class="control-group"&gt;
                                  &lt;!-- Button --&gt;
                                  &lt;div class="controls"&gt;
                                      &lt;button class="btn btn-primary"&gt;Submit&lt;/button&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/fieldset&gt;
                      &lt;/form&gt;                
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;script class="cssdeck" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script class="cssdeck" src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;html&gt;
  </code></pre>
  
  <p>This is the route that I am passing to the action field in my form:</p>
  
  <pre><code>  Route::get('/adding_to_table', function()
    {
        return View::make('create');
    });
  </code></pre>
  
  <p>And this is the create.php file that the route (above) is supposed to load which takes care of
  the database submission  </p>
  
  <pre><code>  DB::table('user_info')-&gt;insert(
      array("First_name" =&gt; Input::post('firstname'),
            "Last_name" =&gt; Input::post("lastname"),
            "E-mail" =&gt; Input::post("email"),
            "Username" =&gt; Input::post("username"),
            "Password" =&gt; Input::post("password"),
          )
      );
  
  echo "Successfully entered user information into data table";
  </code></pre>
  
  <p>However, Laravel doesn't like this and is throwing this error at me: 
  Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException 
  Open: /Users/brendanbusey/Desktop/php_site/laravelSite/bootstrap/compiled.php</p>
  
  <pre><code>        }))-&gt;bind($request);
          } else {
          $this-&gt;methodNotAllowed($others);
         }
     }
    protected function methodNotAllowed(array $others)
    {
        throw new MethodNotAllowedHttpException($others);
    }
    protected function check(array $routes, $request, $includingMethod = true)
  </code></pre>
  
  <p>I have double and triple checked to make sure that I am using the names and not the id's from my html form when I'm sending the data via POST and all my names from the columns in my database match the ones in my code. Any help would be greatly appreciated! </p>