This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
Releases: juampi92/cursor-pagination
Releases · juampi92/cursor-pagination
Laravel 8.* support
Support Laravel 7.*
Merge pull request #14 from patrickomeara/master Support Laravel 7
Support Laravel 6.*
- bumped minimum version of PHP to 7.1 to support phpunit 8 with return type
- syntaxCheck no longer supported in recent phpunit versions
- str helper functions have been removed
- use facade methods
- PHPUnit have deprecated a lot of functions
- date _identifier and identifier are protected and can no longer be tested, the subsequent tests cover this anyway
PR: #11
Thanks @patrickomeara
Laravel 5.8 support
v1.3.2 Update composer.json to support laravel 5.8.*
Identifier Alias
- New option:
identifier_alias
. It determines the name of the attribute to use on the model. - Smartly decide the column name when ordering by
table.column
on the Query.
Added Laravel 5.7 support
Merge pull request #8 from juampi92/juampi92-laravel-5.7 Update composer.json to include laravel 5.7
Added support for unix_dates
If you were using datetime and the date is formatted using unix timestamps, the paginator will transform the unix timestamp into date 'c' format to compare it in the database.
If you are storing unix timestamps on the database, use the 'date_unix' => true
option
Date cursors
- Auto-detect cursors (depending on orderBy clause or primaryKey)
- Datetime cursors are casted property to unix timestamps
- camelCase or snake_case or custom transformation for cursor names
Initial Release 1.0
v1.0.0 StyleCI double quote for simple