mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Tweak eloquent->paginate() for new paginator constructor API.
This commit is contained in:
parent
db6b93f668
commit
5a43f29f31
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user