title: Laravel post route with url parameters
body: <p>I'm facing a big wall of larval routing and I can't seem to find a solution</p>
  
  <p>I have this form in a view template</p>
  
  <pre><code>&lt;form url="/request/{{$equipment-&gt;url}}" method="POST"&gt;
                      &lt;div class="row"&gt;
                          &lt;div class="col-sm-4"&gt;
                              &lt;div class="mt10"&gt;Start Date:&lt;/div&gt;
                              &lt;input type="date" required name="starting_date" value="" placeholder="From" class="request-input request-date mb10"&gt;
                          &lt;/div&gt;
                          &lt;div class="col-sm-4"&gt;
                              &lt;div class="mt10"&gt;End Date:&lt;/div&gt;
                              &lt;input type="date" required name="ending_date" value="" placeholder="To" class="request-input request-date mb10"&gt;
                          &lt;/div&gt;
                          &lt;div class="col-sm-4"&gt;
                              &lt;div class="mt10"&gt;Quantity&lt;/div&gt;
                              &lt;input type="number" required name="quantity" value="" placeholder="Quantity" class="request-input mb10"&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="row"&gt;
                          &lt;div class="col-sm-4"&gt;
                              &lt;div class="mt10"&gt;Voltage&lt;/div&gt;
                              &lt;input type="number" required name="voltage" value="" placeholder="Voltage" class="request-input mb10"&gt;
                          &lt;/div&gt;
                          &lt;div class="col-sm-4"&gt;
                              &lt;div class="mt10"&gt;Param 1&lt;/div&gt;
                              &lt;input type="text" required name="param_1" value="" placeholder="Parameter" class="request-input mb10"&gt;
                          &lt;/div&gt;
                          &lt;div class="col-sm-4"&gt;
                              &lt;div class="mt10"&gt;Param 2&lt;/div&gt;
                              &lt;input type="text" required name="param_2" value="" placeholder="Parameter" class="request-input mb10"&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="row"&gt;
                          &lt;div class="col-sm-12"&gt;
                              &lt;button class="btn btn-block button-orange"&gt;Get quotes now&lt;/button&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/form&gt; 
  </code></pre>
  
  <p>and this is the corresponding routes</p>
  
  <pre><code>Route::group([ 'middleware' =&gt; 'rental'], function(){
   Route::get('/my-requests/{readby_url}', 'PagesController@requests');
   Route::post('/request/{equipment_url}', 'PagesController@request');
   Route::post('/request/create', 'RequestsController@create');
   Route::post('/request/accept', 'RequestsController@accept');
  });
  </code></pre>
  
  <p>My issue is with <code>Route::post('/request/{equipment_url}', 'PagesController@request');
  </code> as it seems to not accept url parameters when the method is set to post.</p>
  
  <p>i.e it throws the error </p>
  
  <pre><code>MethodNotAllowedHttpException in RouteCollection.php line 201:
  in RouteCollection.php line 201
  at RouteCollection-&gt;methodNotAllowed(array('GET', 'HEAD')) in RouteCollection.php line 188
  at RouteCollection-&gt;getRouteForMethods(object(Request), array('GET', 'HEAD')) in RouteCollection.php line 140
  at RouteCollection-&gt;match(object(Request)) in Router.php line 746
  at Router-&gt;findRoute(object(Request)) in Router.php line 655
  at Router-&gt;dispatchToRoute(object(Request)) in Router.php line 631
  at Router-&gt;dispatch(object(Request)) in Kernel.php line 237
  </code></pre>
  
  <p>I want to pass a parameter and post data at the same time.</p>
  
  <p>Is there a way to make this work? I've been told that Route::post handles GET as well but it doesn't seem to work.</p>