PHPackages                             aledefreitas/lv-loadmorepagination - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. aledefreitas/lv-loadmorepagination

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aledefreitas/lv-loadmorepagination
==================================

Load More Pagination for Laravel. Allows to load an initial number of items and subsequent pages can load a different number of items

0.1.0(8y ago)05MITPHPPHP &gt;=5.4.0

Since Feb 1Pushed 6y agoCompare

[ Source](https://github.com/aledefreitas/lv-loadmorepagination)[ Packagist](https://packagist.org/packages/aledefreitas/lv-loadmorepagination)[ RSS](/packages/aledefreitas-lv-loadmorepagination/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel Load More Pagination
============================

[](#laravel-load-more-pagination)

[![Build Status](https://camo.githubusercontent.com/e929bde8f5684db32f43d6e7df18f648da353d49c105b5881ecc31c6efdb3e3a/68747470733a2f2f7472617669732d63692e6f72672f7669746f7266372f6c762d6c6f61646d6f7265706167696e6174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vitorf7/lv-loadmorepagination)

A package that will give you access to a LoadMorePagination trait where you can paginate your model's results with an initial number of items and then a different number of items on subsequent pages.

This package does not implement any paginator interfaces or anything like that it simply returns a similar array to a paginator with the usual information such as last\_page, current\_page, data, etc.

Usage
-----

[](#usage)

To install this package do the following:

```
composer require vitorf7/lv-loadmorepagination

```

Once installed you can use this in two ways. Either by imporating this into your Eloquent Model or using it in your Controller or Repository, etc.

This package has an initial load of 9 items and subsequent load of 3.

In a Model:

```
