定制 eozden/paginator-route 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固