From 1dd46526a8c46648c0c97bd916a7566fe78c1a09 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 18 Jun 2015 12:24:51 +0930 Subject: [PATCH] Merge query params into request input as well --- src/Api/ApiServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/ApiServiceProvider.php b/src/Api/ApiServiceProvider.php index 4a796ebc6..f032eb790 100644 --- a/src/Api/ApiServiceProvider.php +++ b/src/Api/ApiServiceProvider.php @@ -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);