Skip to content

Commit

Permalink
Change request accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
flugg committed Jun 18, 2017
1 parent 4a61dc5 commit f8044ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResourceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected function makeFromPaginator(Paginator $paginator):ResourceInterface
$resource = static::makeFromCollection($paginator->getCollection());

if ($resource instanceof CollectionResource) {
$queryParams = array_diff_key(request()->all(), array_flip(['page']));
$queryParams = array_diff_key(app('request')->all(), array_flip(['page']));
$paginator->appends($queryParams);

$resource->setPaginator(new IlluminatePaginatorAdapter($paginator));
Expand Down

0 comments on commit f8044ca

Please sign in to comment.