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