@@ -413,33 +413,35 @@ public function pluck($value, $key = null)
413
413
/**
414
414
* Retrieve all data of repository, paginated
415
415
*
416
- * @param int $limit
417
- * @param array $columns
418
- * @param int|null $page
416
+ * @param int $perPage
417
+ * @param array $columns
418
+ * @param string $pageName
419
+ * @param int|null $page
419
420
*
420
- * @return \Illuminate\Pagination\Paginator
421
+ * @return \Illuminate\Contracts\ Pagination\LengthAwarePaginator
421
422
*/
422
- public function paginate ($ limit = null , $ columns = ['* ' ], $ page = null )
423
+ public function paginate ($ perPage = null , $ columns = ['* ' ], $ pageName = ' page ' , $ page = null )
423
424
{
424
425
$ this ->newQuery ();
425
426
426
- return $ this ->query ->paginate ($ limit , $ columns , $ page );
427
+ return $ this ->query ->paginate ($ perPage , $ columns, $ pageName , $ page );
427
428
}
428
429
429
430
/**
430
431
* Retrieve all data of repository, paginated
431
432
*
432
- * @param int $limit
433
- * @param array $columns
434
- * @param int|null $page
433
+ * @param int $perPage
434
+ * @param array $columns
435
+ * @param string $pageName
436
+ * @param int|null $page
435
437
*
436
- * @return \Illuminate\Pagination\Paginator
438
+ * @return \Illuminate\Contracts\ Pagination\Paginator
437
439
*/
438
- public function simplePaginate ($ limit = null , $ columns = ['* ' ], $ page = null )
440
+ public function simplePaginate ($ perPage = null , $ columns = ['* ' ], $ pageName = ' page ' , $ page = null )
439
441
{
440
442
$ this ->newQuery ();
441
443
442
- return $ this ->query ->simplePaginate ($ limit , $ columns , $ page );
444
+ return $ this ->query ->simplePaginate ($ perPage , $ columns, $ pageName , $ page );
443
445
}
444
446
445
447
/**
0 commit comments