Skip to content

Commit

Permalink
Use our own method because it doesn't exist in Laravel 6
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Dec 3, 2020
1 parent ee6970d commit 6ade2a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Extensions/Pagination/LengthAwarePaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,11 @@ private function pluckResourcesForApi()
return $item->resource;
});
}

public function withQueryString()
{
$this->appends(request()->query());

return $this;
}
}

0 comments on commit 6ade2a6

Please sign in to comment.