Skip to content

Instantly share code, notes, and snippets.

@mkdesignn
Created May 14, 2020 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkdesignn/db7f1b7759b95a3acd0dd9fa41edceba to your computer and use it in GitHub Desktop.
Save mkdesignn/db7f1b7759b95a3acd0dd9fa41edceba to your computer and use it in GitHub Desktop.
Custom-pagination
protected function paginate($query)
{
$paginate = $query->paginate($this->row_per_page, null, null, $this->page);
return [$paginate->toArray(), $paginate->render()->toHtml()];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment