@@ 59-65 (lines=7) @@ | ||
56 | * @param int $page |
|
57 | * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator |
|
58 | */ |
|
59 | public function paginate($criteria = [], $perPage = null, $columns = ['*'], $pageName = 'page', $page = null) |
|
60 | { |
|
61 | $model = $this->match($criteria); |
|
62 | $perPage = $perPage ?: $this->perPage; |
|
63 | ||
64 | return $model->paginate($perPage, $columns, $pageName, $page); |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * simplePaginate. |
|
@@ 76-82 (lines=7) @@ | ||
73 | * @param int $page |
|
74 | * @return \Illuminate\Contracts\Pagination\Paginator |
|
75 | */ |
|
76 | public function simplePaginate($criteria = [], $perPage = null, $columns = ['*'], $pageName = 'page', $page = null) |
|
77 | { |
|
78 | $model = $this->match($criteria); |
|
79 | $perPage = $perPage ?: $this->perPage; |
|
80 | ||
81 | return $model->simplePaginate($perPage, $columns, $pageName, $page); |
|
82 | } |
|
83 | ||
84 | /** |
|
85 | * first. |