eozden/paginator-route
Composer 安装命令:
composer require eozden/paginator-route
包简介
Middleware for router {page} parameter to work with paginator
README 文档
README
if your routes contains {page} route parameter, this middleware add this {page} parameter to your request instance.
Contents
Installation
Via Composer
$ composer require eozden/paginator-route
Or you can manually update your require block and run composer update if you choose so:
{
"require": {
"eozden/paginator-route": "^1.0"
}
}
Usage
In App/Http/Kernel.php, add the paginator-route middleware.
'api' => [ 'throttle:60,1', \Eozden\PaginatorRoute\Http\Middleware\PaginatorRoute::class ],
Examples
# In your route file contains this route. Route::get('/users/list/{page}', 'UserController@list'); # In your UserController file use as normal. public function list() { User::paginate(30); }
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Security
If you discover any security related issues, please email enes@emarka.com.tr instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-21