Download the PHP package crissi/laravel-cursor-pagination-with-null-values without Composer
On this page you can find all versions of the php package crissi/laravel-cursor-pagination-with-null-values. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download crissi/laravel-cursor-pagination-with-null-values
More information about crissi/laravel-cursor-pagination-with-null-values
Files in crissi/laravel-cursor-pagination-with-null-values
Package laravel-cursor-pagination-with-null-values
Short Description Laravel cursor pagination with null values
License MIT
Homepage https://github.com/crissi/laravel-cursor-pagination-with-null-values
Informations about the package laravel-cursor-pagination-with-null-values
Laravel cursor pagination with null values
For the Query builder and the Eloquent Query builder
Adds a new method to allow cursor pagination to work with column that can have null values using the same method argument signature as Laravel's current cursorPaginate-method.
Why? Columns with null values are not supported in the current Laravel implementation as mentioned in Laravel's docs.
https://laravel.com/docs/8.x/pagination#cursor-vs-offset-pagination
Currently works for database drivers: sqlite, mysql and sqlserver
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
Before:
After:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Christian Nielsen
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-cursor-pagination-with-null-values with dependencies
spatie/laravel-package-tools Version ^1.4.3
illuminate/contracts Version ^8.41