Merge query params into request input as well

This commit is contained in:
Toby Zerner 2015-06-18 12:24:51 +09:30
parent 7bf1fad9d6
commit 1dd46526a8

View File

@ -276,7 +276,7 @@ class ApiServiceProvider extends ServiceProvider
$action = app($class);
$actor = app('Flarum\Support\Actor');
$input = array_merge($httpRequest->getAttributes(), $routeParams);
$input = array_merge($httpRequest->getQueryParams(), $httpRequest->getAttributes(), $routeParams);
$request = new Request($input, $actor, $httpRequest);
return $action->handle($request);