alariva/modelmerge
Composer 安装命令:
composer require alariva/modelmerge
包简介
A Laravel package for Merging Eloquent Models
关键字:
README 文档
README
Easy merging for Eloquent Models.
Installation
Via Composer
$ composer require alariva/modelmerge
Usage
$modelA = SampleModel::make(['firstname' => 'John', 'age' => 33]); $modelB = SampleModel::make(['firstname' => 'John', 'lastname' => 'Doe']); $mergedModel = ModelMerge::setModelA($modelA)->setModelB($modelB)->merge(); $mergedModel->firstname; // John $mergedModel->lastname; // Doe $mergedModel->age; // 33
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- Ariel Vallese
- Icons made by Freepik from Flaticon is licensed by CC 3.0 BY
- Icons made by Roundicons from Flaticon is licensed by CC 3.0 BY
License
MIT. Please see the license file for more information.
统计信息
- 总下载量: 425
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-10