laravel-pagination-middleware maintained by signifly
Description
A pagination middleware for your Laravel app.
Author
Last update
2023/11/21 15:31
(dev-master)
License
Downloads
4 242
A pagination middleware for your Laravel app
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.