PHPackages                             defenestrator/laravel-immutable-eloquent - 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. defenestrator/laravel-immutable-eloquent

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

defenestrator/laravel-immutable-eloquent
========================================

Immutable trait for Laravel Eloquent models.

04PHP

Since Oct 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/defenestrator/Immutable)[ Packagist](https://packagist.org/packages/defenestrator/laravel-immutable-eloquent)[ RSS](/packages/defenestrator-laravel-immutable-eloquent/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Eloquent Immutable Trait Documentation
==============================================

[](#laravel-eloquent-immutable-trait-documentation)

This package is not optimal, but it may be sufficient for some
--------------------------------------------------------------

[](#this-package-is-not-optimal-but-it-may-be-sufficient-for-some)

### The `hashedContent()` method returns `'state'` by default

[](#the-hashedcontent-method-returns-state-by-default)

### The `hashColumn()` method returns `'hash'` by default

[](#the-hashcolumn-method-returns-hash-by-default)

#### Use of `created_at` is acceptable but not required

[](#use-of-created_at-is-acceptable-but-not-required)

#### Use of `updated_at` implies mutability, so using

[](#use-of-updated_at-implies-mutability-so-using)

#### `Blueprint::timestamps()` is discouraged

[](#blueprinttimestamps-is-discouraged)

Hash checking may be disabled simply by

`setting static::$checkHash = false`

in the model's `boot()` method.

This may not be a good idea.

---

Typing is not the bottleneck, endeavor to be thoughtful
-------------------------------------------------------

[](#typing-is-not-the-bottleneck-endeavor-to-be-thoughtful)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/529446?v=4)[Jeremy Jacob Anderson](/maintainers/defenestrator)[@defenestrator](https://github.com/defenestrator)

---

Top Contributors

[![defenestrator](https://avatars.githubusercontent.com/u/529446?v=4)](https://github.com/defenestrator "defenestrator (14 commits)")

### Embed Badge

![Health badge](/badges/defenestrator-laravel-immutable-eloquent/health.svg)

```
[![Health](https://phpackages.com/badges/defenestrator-laravel-immutable-eloquent/health.svg)](https://phpackages.com/packages/defenestrator-laravel-immutable-eloquent)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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