定制 sebastiansulinski/laravel-pagination 二次开发

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

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

sebastiansulinski/laravel-pagination

最新稳定版本:v1.1.1

Composer 安装命令:

composer require sebastiansulinski/laravel-pagination

包简介

Custom pagination wrapper for Laravel 5 with form Select and Zurb Foundation implementations.

README 文档

README

Custom pagination wrapper with Form Select and Zurb Foundation implementations.

Preview

Desktop

Pagination on Desktop

Smart Phone

Pagination on Smart Phone

Select functionality

For the select to work with the pagination - you can use sebastiansulinski/ssd-select and bind its go-to action with our select element somewhere from within your JavaScript files:

$('.select-pagination select').ssdSelect({
    action: 'go-to'
});

Usage

From within your controller's method use the pagination() method as you would with the default pagination.

public function index()
{
    $collection = Product::latest()->paginate(12);

    return $this->view('product.index', compact('collection'));
}

In the view wrap the collection with one of the pagination wrappers

{!! (new \SSD\Pagination\Select($collection))->render() !!}

or

{!! (new \SSD\Pagination\Foundation($collection))->render() !!}

To center pagination on the page use the div with class pagination-center (this will only work if you used the attached scss file to render your styles)

<div class="pagination-center">
    {!! (new \SSD\Pagination\Select($collection))->render() !!}
</div>
<div class="pagination-center">
    {!! (new \SSD\Pagination\Foundation($collection))->render() !!}
</div>

统计信息

  • 总下载量: 565
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固