Open makoru-hikage opened 7 years ago
There is only one parameter in paginate, $items. If someone wants to go to page 2, how shall it be done?
$items
In Illuminate\Database\Query\Builder, the paginate method has four arguments:
Illuminate\Database\Query\Builder
paginate
public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
If Repofuck's paginate shall be refactored, it must supply the corresponding arguments: $this->paginates, $this->columns, null, $page_number.
Repofuck
$this->paginates, $this->columns, null, $page_number
There is only one parameter in paginate,
$items
. If someone wants to go to page 2, how shall it be done?In
Illuminate\Database\Query\Builder
, thepaginate
method has four arguments:public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
If
Repofuck
'spaginate
shall be refactored, it must supply the corresponding arguments:$this->paginates, $this->columns, null, $page_number
.