In Lumen I have to get the url first segment as a $source property and all other parts as a $path. It is solved by this:
Route::get('/{source}/{path:.*}', 'HomeController@index');
By this the /database/path/to/folder URL will be parsed as the $source = 'database'; and the $path = 'path/to/folder'; It's great!
But what when I would have optional query parameters too, for example: /database/path/to/folder?attr1=foo&attr2=bar
How can I define to get the whole query part in a property as a route parameter?