Tweak Query->paginate for new paginator constructor API.
This commit is contained in:
parent
e9397b7107
commit
db6b93f668
|
@ -466,7 +466,7 @@ public function paginate($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