Commit 5a43f29f by Taylor Otwell

Tweak eloquent->paginate() for new paginator constructor API.

parent db6b93f6
......@@ -202,7 +202,7 @@ abstract class Eloquent {
$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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment