staudenmeir/eloquent-param-limit-fix
Laravel Eloquent eager loading fix for parameter limits of SQLite and SQL Server
194,781
51
| Install | |
|---|---|
composer require staudenmeir/eloquent-param-limit-fix |
|
| Latest Version: | v1.1.2 |
| License: | MIT |
| Last Updated: | Mar 4, 2025 |
| Links: | GitHub · Packagist |
Maintainer: staudenmeir
Eloquent Param Limit Fix
This Laravel Eloquent fix allows eager loading beyond the parameter limits of MySQL/MariaDB (65,535), PostgreSQL (65,535), SQLite (999), and SQL Server (2,100).
Tested with Laravel 5.4+.
Installation
composer require staudenmeir/eloquent-param-limit-fix
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
staudenmeir/laravel-adjacency-list: Replace both packages with staudenmeir/eloquent-param-limit-fix-x-laravel-adjacency-list to use them on the same model.
Contributing
Please see CONTRIBUTING and CODE OF CONDUCT for details.
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
631,580,251
9,707
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
404,034,618
608
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
387,976,821
4,658