class Pagination implements IteratorAggregate, JsonableInterface
Class Pagination is used so we can paginate search results from many different searched models
Methods
| $this |
make($collection $collection, $page $page, $perPage $perPage)
Makes a new paginated result from a collection |
|
| mixed |
links()
Lets us do links on this paginated object |
|
| array |
toArray()
Turns this paginated object into an array |
|
| $this |
appends($data $data)
Append input queries |
|
| Traversable |
getIterator()
Iterator lets us traverse this paginated object |
|
| string |
toJson(int $options)
Turns this object into a json serialized object |
Details
at line 37
public $this
make($collection $collection, $page $page, $perPage $perPage)
Makes a new paginated result from a collection
at line 65
public mixed
links()
Lets us do links on this paginated object
at line 75
public array
toArray()
Turns this paginated object into an array
at line 93
public $this
appends($data $data)
Append input queries
at line 107
public Traversable
getIterator()
Iterator lets us traverse this paginated object
at line 118
public string
toJson(int $options)
Turns this object into a json serialized object