2017 © Pedro Peláez
 

library eloquent-param-limit-fix

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

image

staudenmeir/eloquent-param-limit-fix

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

  • Monday, May 28, 2018
  • by staudenmeir
  • Repository
  • 2 Watchers
  • 1 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2100 % Grown

The README.md

Eloquent Param Limit Fix

CI Code Coverage PHPStan Latest Stable Version Total Downloads License, (*1)

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)., (*2)

Tested with Laravel 5.4+., (*3)

Installation

composer require staudenmeir/eloquent-param-limit-fix

Usage

Use the ParamLimitFix trait in the affected parent models:, (*4)

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

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

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

Package Conflicts

Contributing

Please see CONTRIBUTING and CODE OF CONDUCT for details., (*5)

The Versions

28/05 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

by Jonas Staudenmeir

28/05 2018

v1.0

1.0.0.0

Eloquent eager loading fix for parameter limits in SQLite and SQL Server

  Sources   Download

MIT

by Jonas Staudenmeir