PHPackages                             awobaz/eloquent-auto-append - 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. awobaz/eloquent-auto-append

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

awobaz/eloquent-auto-append
===========================

Automatically append accessors to model serialization

1.0.10(10mo ago)14824[1 PRs](https://github.com/topclaudy/eloquent-auto-append/pulls)MITPHPPHP &gt;=7.1

Since Dec 14Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/topclaudy/eloquent-auto-append)[ Packagist](https://packagist.org/packages/awobaz/eloquent-auto-append)[ RSS](/packages/awobaz-eloquent-auto-append/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (7)Versions (13)Used By (0)

Eloquent Auto Append
====================

[](#eloquent-auto-append)

**Eloquent Auto Append** automatically appends your [accessors](https://laravel.com/docs/5.7/eloquent-mutators#accessors-and-mutators) to model serialization without having you to explicitly specify them in the `$appends` array.

#### Related discussions:

[](#related-discussions)

- [How to always append attributes to Laravel Eloquent model?](https://stackoverflow.com/questions/35701538/how-to-always-append-attributes-to-laravel-eloquent-model)
- [Why is my Laravel Eloquent accessor not showing up in the response?](https://stackoverflow.com/questions/47872233/why-is-my-laravel-eloquent-accessor-not-showing-up-in-the-response)

Installation
------------

[](#installation)

The recommended way to install **Eloquent Auto Append** is through [Composer](http://getcomposer.org/)

```
$ composer require awobaz/eloquent-auto-append
```

> **Note:** **Eloquent Auto Append** requires Laravel 5.4+.

Usage
-----

[](#usage)

### Using the `Awobaz\AutoAppend\Database\Eloquent\Model` class

[](#using-the-awobazautoappenddatabaseeloquentmodel-class)

Simply make your model class derive from the `Awobaz\AutoAppend\Database\Eloquent\Model` base class. The `Awobaz\AutoAppend\Database\Eloquent\Model` extends the `Eloquent` base class without changing its core functionality.

### Using the `Awobaz\AutoAppend\AutoAppend` trait

[](#using-the-awobazautoappendautoappend-trait)

If for some reasons you can't derive your models from `Awobaz\AutoAppend\Database\Eloquent\Model`, you may take advantage of the `Awobaz\AutoAppend\AutoAppend` trait. Simply use the trait in your models.

### Disable Auto Append

[](#disable-auto-append)

You may disable **Auto Append** on a model by setting it's property `$autoAppend` to `false`

```
protected $autoAppend = false;
```

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

[](#contributing)

Please read [CONTRIBUTING.md](https://github.com/topclaudy/eloquent-auto-append/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/topclaudy/eloquent-auto-append/tags).

Unit Tests
----------

[](#unit-tests)

In order to run the test suite, install the development dependencies:

```
$ composer install --dev
```

Then, run the following command:

```
$ vendor/bin/phpunit
```

Authors
-------

[](#authors)

- [Claudin J. Daniel](https://github.com/topclaudy) - *Initial work*

Sponsored by
------------

[](#sponsored-by)

- [Awobaz](https://awobaz.com) - Web/Mobile agency based in Montreal, Canada

License
-------

[](#license)

**Eloquent Auto Append** is licensed under the [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance55

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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

Every ~250 days

Recently: every ~320 days

Total

11

Last Release

300d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6.4

1.0.3PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1437237?v=4)[Claudin J. Daniel](/maintainers/topclaudy)[@topclaudy](https://github.com/topclaudy)

---

Top Contributors

[![topclaudy](https://avatars.githubusercontent.com/u/1437237?v=4)](https://github.com/topclaudy "topclaudy (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

laravellaravel accessorslaravel appends

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/awobaz-eloquent-auto-append/health.svg)

```
[![Health](https://phpackages.com/badges/awobaz-eloquent-auto-append/health.svg)](https://phpackages.com/packages/awobaz-eloquent-auto-append)
```

###  Alternatives

[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k2](/packages/mike-bronner-laravel-model-caching)[spatie/laravel-medialibrary

Associate files with Eloquent models

6.2k45.4M698](/packages/spatie-laravel-medialibrary)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.9M109](/packages/mongodb-laravel-mongodb)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M307](/packages/laravel-ai)[propaganistas/laravel-disposable-email

Disposable email validator

6023.2M7](/packages/propaganistas-laravel-disposable-email)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)

PHPackages © 2026

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