Tweak eloquent->paginate() for new paginator constructor API.
This commit is contained in:
parent
db6b93f668
commit
5a43f29f31
|
@ -202,7 +202,7 @@ private function _paginate($per_page = null)
|
||||||
|
|
||||||
$current_page = \System\Paginator::page($total, $per_page);
|
$current_page = \System\Paginator::page($total, $per_page);
|
||||||
|
|
||||||
return new \System\Paginator($this->for_page($current_page, $per_page)->get(), $total, $per_page);
|
return \System\Paginator::make($this->for_page($current_page, $per_page)->get(), $total, $per_page);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue