PHPackages                             staudenmeir/eloquent-param-limit-fix - 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. [Database &amp; ORM](/categories/database)
4. /
5. staudenmeir/eloquent-param-limit-fix

ActiveLibrary[Database &amp; ORM](/categories/database)

staudenmeir/eloquent-param-limit-fix
====================================

Laravel Eloquent eager loading fix for parameter limits of SQLite and SQL Server

v1.1.2(1y ago)52167.2k↑11.7%81MITPHPCI passing

Since May 28Pushed 1y ago3 watchersCompare

[ Source](https://github.com/staudenmeir/eloquent-param-limit-fix)[ Packagist](https://packagist.org/packages/staudenmeir/eloquent-param-limit-fix)[ RSS](/packages/staudenmeir-eloquent-param-limit-fix/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

Eloquent Param Limit Fix
========================

[](#eloquent-param-limit-fix)

[![CI](https://github.com/staudenmeir/eloquent-param-limit-fix/actions/workflows/ci.yml/badge.svg)](https://github.com/staudenmeir/eloquent-param-limit-fix/actions/workflows/ci.yml?query=branch%3Amain)[![Code Coverage](https://camo.githubusercontent.com/f5153aef01ea77ba6a6d8d7ce4625b96b3ee95c4a4a72519af83147574755c4f/68747470733a2f2f636f6465636f762e696f2f67682f7374617564656e6d6569722f656c6f7175656e742d706172616d2d6c696d69742d6669782f67726170682f62616467652e7376673f746f6b656e3d33335a563437344f4a48)](https://codecov.io/gh/staudenmeir/eloquent-param-limit-fix)[![PHPStan](https://camo.githubusercontent.com/2b1732baa25914ee5ccbeaf42980d671de29700b49e0639e1edc8e66181f6905/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c25323031302d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/staudenmeir/eloquent-param-limit-fix/actions/workflows/static-analysis.yml?query=branch%3Amain)[![Latest Stable Version](https://camo.githubusercontent.com/fc3c3a28e0ed1f6f0a3d99d199c1fccd739bf8b954c75d79d041e4ff9e2514b0/68747470733a2f2f706f7365722e707567782e6f72672f7374617564656e6d6569722f656c6f7175656e742d706172616d2d6c696d69742d6669782f762f737461626c65)](https://packagist.org/packages/staudenmeir/eloquent-param-limit-fix)[![Total Downloads](https://camo.githubusercontent.com/f863d5f5db6856685cfb095a801764cfa7250f5605a23b5193712ea7caedaf3d/68747470733a2f2f706f7365722e707567782e6f72672f7374617564656e6d6569722f656c6f7175656e742d706172616d2d6c696d69742d6669782f646f776e6c6f616473)](https://packagist.org/packages/staudenmeir/eloquent-param-limit-fix/stats)[![License](https://camo.githubusercontent.com/718d2ed91bdd2851901556701a2dc04a2dcb778c6186393b316eaa171e585bbb/68747470733a2f2f706f7365722e707567782e6f72672f7374617564656e6d6569722f656c6f7175656e742d706172616d2d6c696d69742d6669782f6c6963656e7365)](https://github.com/staudenmeir/eloquent-param-limit-fix/blob/main/LICENSE)

This Laravel Eloquent fix allows eager loading beyond the parameter limits of MySQL/MariaDB (65,535), [PostgreSQL](https://www.postgresql.org/docs/current/limits.html) (65,535), [SQLite](https://www.sqlite.org/limits.html#max_variable_number) (999), and [SQL Server](https://docs.microsoft.com/en-us/sql/sql-server/maximum-capacity-specifications-for-sql-server) (2,100).

Tested with Laravel 5.4+.

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

[](#installation)

```
composer require staudenmeir/eloquent-param-limit-fix

```

Usage
-----

[](#usage)

Use the `ParamLimitFix` trait in the affected parent models:

```
class User extends Model
{
    use \Staudenmeir\EloquentParamLimitFix\ParamLimitFix;

    public function posts()
    {
        return $this->hasMany('App\Post');
    }
}

$users = User::with('posts')->get();
```

### Package Conflicts

[](#package-conflicts)

- `staudenmeir/laravel-adjacency-list`: Replace both packages with [staudenmeir/eloquent-param-limit-fix-x-laravel-adjacency-list](https://github.com/staudenmeir/eloquent-param-limit-fix-x-laravel-adjacency-list)to use them on the same model.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CODE OF CONDUCT](.github/CODE_OF_CONDUCT.md) for details.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~547 days

Total

5

Last Release

722d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c1c3cda28d147c1899037c3187f89a606ca14f51190de59e88fa91e51647ff6?d=identicon)[staudenmeir](/maintainers/staudenmeir)

---

Top Contributors

[![staudenmeir](https://avatars.githubusercontent.com/u/1853169?v=4)](https://github.com/staudenmeir "staudenmeir (70 commits)")[![27pchrisl](https://avatars.githubusercontent.com/u/6286310?v=4)](https://github.com/27pchrisl "27pchrisl (1 commits)")[![iBotPeaches](https://avatars.githubusercontent.com/u/611784?v=4)](https://github.com/iBotPeaches "iBotPeaches (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/staudenmeir-eloquent-param-limit-fix/health.svg)

```
[![Health](https://phpackages.com/badges/staudenmeir-eloquent-param-limit-fix/health.svg)](https://phpackages.com/packages/staudenmeir-eloquent-param-limit-fix)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
