2017 © Pedro Peláez
 

library laravel-pagination

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

image

sebastiansulinski/laravel-pagination

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

  • Monday, April 4, 2016
  • by sebastiansulinski
  • Repository
  • 1 Watchers
  • 1 Stars
  • 554 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Laravel 5 pagination wrapper

Custom pagination wrapper with Form Select and Zurb Foundation implementations., (*1)

Preview

Desktop

Pagination on Desktop, (*2)

Smart Phone

Pagination on Smart Phone, (*3)


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:, (*4)

$('.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., (*5)

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, (*6)

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

or, (*7)

{!! (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), (*8)

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

The Versions

04/04 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Sulinski

04/04 2016

v1.1.1

1.1.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Sulinski

27/12 2015

v1.1.0

1.1.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Sulinski

11/11 2015

1.0.1

1.0.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Sulinski

20/10 2015

1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastian Sulinski