The signifly/laravel-pagination-middleware
package allows you to easily configure pagination default and max values in your Laravel app.
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"
$ composer test
If you discover any security issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.