\App\UtilsPaginator

Paginator.php

Create pagination

Summary

Methods
Properties
Constants
paginate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

paginate()

paginate(integer  $perPage, integer  $total, integer  $currentPage) : array

Returns a pagination table

Parameters

integer $perPage

elements per page

integer $total

total of elements

integer $currentPage

current page

Returns

array