title: laravel 4 changing url structure with parameter passing
body: <p>I'm just a beginner in laravel framework. i created a simple form and controller methods . i think by default the form method is post. but now i need to make it as get method and also wants to pass the selected inputs to controller and shows that parameters in the url also. currently i did like below but failed. </p>
  
  <p>index.blade.php</p>
  
  <pre><code>&lt;?php echo Form::open(array('url' =&gt; 'home/find','method' =&gt; 'get')); ?&gt;
   &lt;select class="location" id="location" name='location'&gt;
  &lt;?php                                                
                         $id1 = /* get user db details based on locations*/  
                          $location_id_drop_down='';                       
                          foreach($idl as $lrow)
                          {
                              $city_name=Location::where('location_id','=',$lrow['loc_id'])-&gt;first();
                              if($city_name==array()) continue;
                              if(Input::old('location')==$lrow['loc_id'])
                              {
                                  $location_id_drop_down.="&lt;option value='" . $city_name['location_name'] . "' selected='selected'&gt;" .$city_name['location_name'] . "&lt;/option&gt;";
                              }
                              else
                              {
                                  $location_id_drop_down.="&lt;option value='" . $city_name['location_name'] . "'&gt;" . $city_name['location_name']. "&lt;/option&gt;";
                              }
                          }
                          echo $location_id_drop_down;                  
                      ?&gt;
                  &lt;/select&gt;
   &lt;input type="submit" name="search" id="search_submit" class="search_submit" value="Search" /&gt;
   {{ Form::close() }}
  </code></pre>
  
  <p>HomeController.php</p>
  
  <pre><code>public function anyFind($s='',$d='',$l='') {
  if(Input::get('search'))
               {
  
                  $location=Input::get('location');
               }
               else
               {
  
                   if($l!='~')
                      $location=$l;
               }
  
  /* queries to get the user details and images based on selected location and list them*/
  }
  </code></pre>
  
  <p>Routes.php</p>
  
  <pre><code>Route::get('/find/{location}','HomeController@anySearch');
  </code></pre>
  
  <p>But this shows the url as <code>mysite.com/home/find?location=Test&amp;search=Search</code></p>
  
  <p>I need mysite.com/home/find/location</p>
  
  <p>is there any mistake in my code?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>As a part of experiment i tried this method. i gave a redirect like below at the end of my controller function anyfind()</p>
  
  <pre><code>return Redirect::to('/home/find/'.$location);
  </code></pre>
  
  <p>But this redirects me but did anyone knows how to load the search.search_new.blade.php with this custom url??</p>