title: Laravel, Pass multiple input values to controller from url and form
body: <p>I want to pass many inputs value to controller so I want to compare them with values in database, also I want to send thease value in the url, Im new to laravel so please help me </p>
  
  <p><strong>route:</strong></p>
  
  <pre><code>Route::get('/store/caterer_search/{filter?}','HomeController@StoreSearch');
  </code></pre>
  
  <p><strong>form:</strong></p>
  
  <pre><code>&lt;form class="order-box__input-wrapper" name="form_mainpage" id="form_mainpage" action="/store/caterer_search/" method="get"  enctype="multipart/form-data" autocomplete="off"&gt;
      {{ csrf_field() }}
  
      &lt;div class="order-box__input"&gt;
          &lt;div class="address-bar-input"&gt;
  
              &lt;input type="text" aria-label="Enter address" id="autocomplete" onFocus="geolocate()" name="autocomplete" placeholder="Enter your delivery address" data-role="address-field" onClick="this.select();"&gt;
              &lt;input class="field" id="city" hidden=""&gt;&lt;/input&gt;
  
              &lt;input class="field" id="street_number" disabled="true" hidden=""&gt;&lt;/input&gt;
              &lt;input class="field" id="route" disabled="true" hidden="" &gt;&lt;/input&gt;
              &lt;input class="field" id="locality" disabled="true" name="locality" &gt;&lt;/input&gt;
              &lt;input class="field" id="administrative_area_level_1" disabled="true"name="administrative_area_level_1"&gt;&lt;/input&gt;
  
              &lt;input class="field" id="postal_code" disabled="true" name="postal_code" &gt;&lt;/input&gt;
  
              &lt;input class="field" id="country" disabled="true" hidden=""&gt;&lt;/input&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;i class="icon icon-location"&gt;&lt;/i&gt;
      &lt;button type="submit" id="homesearchbtn" class="btn btn--primary order-box__submit" aria-label="Search for caterers" disabled=""&gt;Search&lt;/button&gt;
  
      &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>controller:</strong></p>
  
  <pre><code>public function StoreSearch($autocomplete,$locality,$administrative_area_level_1,$postal_code)
  {
      $stores = Storeinfo::getStoreByLocation($autocomplete);
  
      return view('hotels.archive',compact('hotel','country','city','star'));
  }
  </code></pre>