New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bernskiold/laravel-record-merge

A package for Laravel to merge two Eloquent models into one.
1,363
Install
composer require bernskiold/laravel-record-merge
Latest Version:0.2.1
PHP:^8.2
Laravel:11 · 12 · 13
License:MIT
Last Updated:Jun 3, 2026
Links: GitHub  ·  Packagist
Maintainer: bernskiold

A package for Laravel to merge two Eloquent models into one.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation & Usage

You can install the package via composer:

composer require bernskiold/laravel-record-merge

After installing the package, you may publish the configuration file:

php artisan vendor:publish --provider="Bernskiold\LaravelRecordMerge\LaravelRecordMergeServiceProvider" --tag="config"

This will publish a record-merge.php file in your config directory.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

sofa/hookable

Laravel Eloquent hooks system.

2,050,959 65
volosyuk/simple-eloquent

Adaptation of eloquent for retrieving its attributes

118,290 55
gzero/eloquent-tree

Eloquent Tree is a tree model for Laravel Eloquent ORM.

59,533 131
martinbean/laravel-sluggable-trait

A trait you can apply to Eloquent models to have slugs automatically generated o...

49,144 24
isswp101/elasticsearch-eloquent

Elasticsearch functionality like Laravel Eloquent models.

25,593 112

Version History

Version Released PHP Laravel License
0.2.1 ^8.2 ^11.0 || ^12.0 || ^13.0 MIT
0.2.0 ^8.2 ^11.0 || ^12.0 || ^13.0 MIT
0.1.2 ^8.2 ^11.0 || ^12.0 MIT
0.1.1 ^8.2 ^11.0 || ^12.0 MIT
0.1.0 ^8.2 ^11.0 || ^12.0 MIT