Looking to hire Laravel developers? Try LaraJobs

laravel-immutable-eloquent maintained by defenestrator

Description
Immutable trait for Laravel Eloquent models.
Last update
2020/10/10 19:12 (dev-main)
License
Links
Downloads
4

Comments
comments powered by Disqus

Laravel Eloquent Immutable Trait Documentation

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

The hashedContent() method returns 'state' by default

The hashColumn() method returns 'hash' by default

Use of created_at is acceptable but not required

Use of updated_at implies mutability, so using

Blueprint::timestamps() 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