Skip to content

Instantly share code, notes, and snippets.

@Quix0r
Quix0r / paginate.php
Created October 30, 2018 16:24 — forked from vluzrmos/paginate.php
Laravel Paginate Collection or Array
<?php
/**
* Gera a paginação dos itens de um array ou collection.
*
* @param array|Collection $items
* @param int $perPage
* @param int $page
* @param array $options
*
* @return LengthAwarePaginator