ApiPaginator
Api paginator trait
Table of Contents
Methods
- paginate() : void
- Create paginator and set api response fields
Methods
paginate()
Create paginator and set api response fields
public
paginate(mixed $dataSource[, int $page = 1 ][, int $perPage = Paginator::DEFAULT_PER_PAGE ]) : void
Parameters
- $dataSource : mixed
- $page : int = 1
- $perPage : int = Paginator::DEFAULT_PER_PAGE