swooder/simple-pagination

simple pagination extension for laravel-admin

1.0.0 2023-05-30 07:01 UTC

This package is auto-updated.

Last update: 2024-10-30 01:59:26 UTC


README

This is an extension to integrates Laravel simple-pagination into laravel-admin.

Installation

composer require swooder/simple-pagination

Configurations

Open config/app.php, add configurations for providers sections

'providers' => [
    ...
    Swooder\SimplePagination\SimplePaginationServiceProvider::class
]
   

Usage

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);

License

Licensed under The MIT License (MIT).