signifly / laravel-pagination-middleware
A pagination middleware for your Laravel app.
Installs: 4 222
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^7.4|^8.0
- illuminate/support: ^6.0|^7.0|^8.0|^9.0|^10.0
Requires (Dev)
- orchestra/testbench: ^4.0|^5.0|^6.0|^7.0|^8.0
- phpunit/phpunit: ^8.0|^9.0|^10.0
README
The signifly/laravel-pagination-middleware
package allows you to easily configure pagination default and max values in your Laravel app.
Installation
You can install the package via composer:
$ composer require signifly/laravel-pagination-middleware
The package will automatically register itself.
Add the middleware to your App\Http\Kernel.php
file:
protected $routeMiddleware = [ 'pagination' => \Signifly\Pagination\Pagination::class, ];
Now you can apply the middleware to your routes or middleware groups.
You can publish the config by running:
$ php artisan vendor:publish --provider="Signifly\\Pagination\\PaginationServiceProvider"
Testing
$ composer test
Security
If you discover any security issues, please email dev@signifly.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.