This is an extension to integrates Laravel simple-pagination into laravel-admin.
composer require swooder/simple-pagination
Open config/app.php
, add configurations for providers sections
'providers' => [
...
Swooder\SimplePagination\SimplePaginationServiceProvider::class
]
Use it in the grid:
// origin use case in grid
$grid = new Grid(new User());
//now replace Grid to SimpleGird
$grid = new SimpleGrid(new User());
//if you need the defalut paginator
$grid->simplePaginate(false);
Licensed under The MIT License (MIT).