mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
Merge query params into request input as well
This commit is contained in:
parent
7bf1fad9d6
commit
1dd46526a8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user