| Package Data | |
|---|---|
| Maintainer Username: | lartie |
| Maintainer Contact: | log.wil.log@gmail.com (Artemy Beliankin) |
| Package Create Date: | 2017-02-03 |
| Package Last Update: | 2021-04-14 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-04 03:02:33 |
| Package Statistics | |
|---|---|
| Total Downloads: | 23 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 6 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
composer require "lartie/api-pagination"
Include ApiPaginationTrait trait inside your model.
class User extends Model
{
use ApiPaginationTrait;
And that's it!
User::where('is_blocked', false)->apiPagination($limit, $offset);
[
'items' => [...],
'hasNextPage' => true, //or false
]
The MIT License (MIT). Please see License File for more information.