Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

signifly/laravel-pagination-middleware

Repository files navigation

A pagination middleware for your Laravel app

Latest Version on Packagist Build Status StyleCI Quality Score Total Downloads

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 [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.