PHPackages                             mohamedsabil83/laravel-loadmore - 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. mohamedsabil83/laravel-loadmore

ActiveLibrary

mohamedsabil83/laravel-loadmore
===============================

Allow pagination to load an initial number of items on the first page and subsequent pages can load a different number of items

v0.5.0(4y ago)0332MITPHPPHP ^7.1|^8.0CI failing

Since Jul 29Pushed 4y agoCompare

[ Source](https://github.com/mohamedsabil83/laravel-loadmore)[ Packagist](https://packagist.org/packages/mohamedsabil83/laravel-loadmore)[ Docs](https://github.com/mohamedsabil83/laravel-loadmore)[ RSS](/packages/mohamedsabil83-laravel-loadmore/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

A `LOADMORE` Trait for Laravel Pagination
=========================================

[](#a-loadmore-trait-for-laravel-pagination)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2505734f9dcf3617774579ae4464ab0f8d9a38ef6202dc4d9ed97093a81d7c67/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f68616d6564736162696c38332f6c61726176656c2d6c6f61646d6f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohamedsabil83/laravel-loadmore)[![Build Status](https://camo.githubusercontent.com/30e8c1fb12dd56de006f6248ff25ac93178481ed7ec8a818f401d90cac8c691e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d6f68616d6564736162696c38332f6c61726176656c2d6c6f61646d6f72652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mohamedsabil83/laravel-loadmore)[![Quality Score](https://camo.githubusercontent.com/31a3dee06cbec45e2953d168eff02a7d2b6b2f9d0d8f962b67918bc0087dba5c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d6f68616d6564736162696c38332f6c61726176656c2d6c6f61646d6f72652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mohamedsabil83/laravel-loadmore)[![Total Downloads](https://camo.githubusercontent.com/a04b7d2ec840d4fb85586e887df5a8c86e39e76a60d2052fd3f1e97f31b66cec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f68616d6564736162696c38332f6c61726176656c2d6c6f61646d6f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohamedsabil83/laravel-loadmore)

A trait for Laravel 5.8+ pagination that allows you to retrieve an initial number of items in the first page and a different number of items on subsequent pages.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require mohamedsabil83/laravel-loadmore
```

Usage
-----

[](#usage)

Once installed, you can import it into your eloquent model like following:

```
