2017 © Pedro Peláez
 

library paginator

image

sloveniangooner/paginator

  • Friday, August 8, 2014
  • by slovenianGooner
  • Repository
  • 1 Watchers
  • 4 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

paginator

A spoof of the Laravel Paginator to enable it working as a standalone version., (*1)

Usage

class Post extends Eloquent {

    use Sg/Paginator/PaginatorTrait;

    // Optional - custom page name (defaults to page)
    protected $pageVariable = 'page';

}

And that's it. From then on you can call the paginate() method on this Eloquent model., (*2)

Todo

  • Currently only array access is possible, working on accessing properties as an object

The Versions