定制 staudenmeir/eloquent-param-limit-fix 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

staudenmeir/eloquent-param-limit-fix

最新稳定版本:v1.1.2

Composer 安装命令:

composer require staudenmeir/eloquent-param-limit-fix

包简介

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

README 文档

README

CI Code Coverage PHPStan Latest Stable Version Total Downloads License

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

Contributing

Please see CONTRIBUTING and CODE OF CONDUCT for details.

统计信息

  • 总下载量: 154.2k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 52
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 52
  • Watchers: 3
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-28