title: Laravel Routing: How to route when using URL query string?
body: <p>I have a route - let's call it <strong><em>stats</em></strong>. Here is what my routing currently looks like:</p>
  
  <pre><code>Route::get('stats', 'StatsController@index');
  Route::get('stats/{query}', 'StatsController@store');
  </code></pre>
  
  <p>My goal is to show stat data if someone visits <strong><em>/stats</em></strong> and to store stat data if someone visits a URL similar to <strong><em>/stats?name=John&amp;device=Android</em></strong>.</p>
  
  <p>How would I then route if there is a query string attached to my namespace <strong><em>stats</em></strong>? </p>
  
  <p>Something like this?</p>
  
  <pre><code>Route::get('stats/?name=*&amp;device=*', 'StatsController@store');
  </code></pre>