Skip to content

Commit

Permalink
Added options argument to paginate().
Browse files Browse the repository at this point in the history
  • Loading branch information
nqxcode committed Apr 9, 2017
1 parent c74d7ac commit b5fba69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Nqxcode/LuceneSearch/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function count()
*
* @return \Illuminate\Pagination\Paginator
*/
public function paginate($perPage = 25, $page = null)
public function paginate($perPage = 25, $page = null, array $options = [])
{
$page = $page ?: Input::get('page', 1);

Expand All @@ -105,7 +105,7 @@ public function paginate($perPage = 25, $page = null)

$total = $this->count();

$paginator = new LengthAwarePaginator($models, $total, $perPage, $page);
$paginator = new LengthAwarePaginator($models, $total, $perPage, $page, $options);

return $paginator;
}
Expand Down

0 comments on commit b5fba69

Please sign in to comment.