I am trying to know how to add query parameters to routes in Lumen
this is an example of a route I created
$app->get('/product/{apikey}','ProductController@getProduct');
This works when I use
but I would like to use it like this
I tried this
$app->get('/product/?apikey={apikey}','ProductController@getProduct');
But this gives me MethodNotAllowedHttpException
I would like to know how to write routes with query parameters in Lumen ?