PHPackages                             sydante/laravel-eloquent-with-not-overwritten - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. sydante/laravel-eloquent-with-not-overwritten

ActiveLibrary[Database &amp; ORM](/categories/database)

sydante/laravel-eloquent-with-not-overwritten
=============================================

Add a method to Eloquent that does not overwrite the established relationship when relating 'with'.

v1.0.0(4y ago)17MITPHPPHP &gt;=7.3

Since Oct 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Sy-Dante/laravel-eloquent-with-not-overwritten)[ Packagist](https://packagist.org/packages/sydante/laravel-eloquent-with-not-overwritten)[ Docs](https://github.com/Sy-Dante/laravel-eloquent-with-not-overwritten)[ RSS](/packages/sydante-laravel-eloquent-with-not-overwritten/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

 laravel-eloquent-with-not-overwritten
=======================================

[](#-laravel-eloquent-with-not-overwritten-)

 Add a method to eloquent that does not overwrite the established relationship when relating with..

Installing
----------

[](#installing)

```
$ composer require sydante/laravel-eloquent-with-not-overwritten -vvv
```

Usage
-----

[](#usage)

```
$eloquentModel
    ->with(
        'progresses',
        function (HasMany $builder) {
            $builder->select(['id', 'eloquent_model_id', 'workflow_id', 'status', 'admin_id'])
                ->orderBy('id');
        }
    )
    // Do not overwrite defined eager loaded relations
    ->withNotOverwritten('progresses.admin:id,name')
    ->withNotOverwritten('progresses.workflow:id,name')
    ->withNotOverwritten('progresses.workflow.adminRole:id,name,slug');
```

Purpose
-------

[](#purpose)

See [laravel/framework#39210](https://github.com/laravel/framework/pull/39210)

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/sydante/laravel-eloquent-with-not-overwritten/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/sydante/laravel-eloquent-with-not-overwritten/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1665d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7abdb78760a63b2dec954f02764ffd23a5a2f7f3d5c4b661f3d176a6f83db578?d=identicon)[Sy-Dante](/maintainers/Sy-Dante)

---

Top Contributors

[![Sy-Dante](https://avatars.githubusercontent.com/u/10508638?v=4)](https://github.com/Sy-Dante "Sy-Dante (6 commits)")

---

Tags

laraveldatabaseeloquentwith

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sydante-laravel-eloquent-with-not-overwritten/health.svg)

```
[![Health](https://phpackages.com/badges/sydante-laravel-eloquent-with-not-overwritten/health.svg)](https://phpackages.com/packages/sydante-laravel-eloquent-with-not-overwritten)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[betterapp/laravel-db-encrypter

Provides database model attribute encryption/decryption

365614.7k8](/packages/betterapp-laravel-db-encrypter)[waad/laravel-model-metadata

A robust Laravel package for handling metadata with JSON casting, custom relation names, and advanced querying capabilities.

823.1k](/packages/waad-laravel-model-metadata)[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3516.7k3](/packages/wayofdev-laravel-cycle-orm-adapter)[weebly/laravel-mutate

Mutate Laravel attributes

1354.7k](/packages/weebly-laravel-mutate)[boaideas/laravel-cli-create-user

An artisan command to create, list and remove users in a laravel application from the cli

1610.7k](/packages/boaideas-laravel-cli-create-user)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
