laravel-immutable-eloquent maintained by defenestrator
Description
Immutable trait for Laravel Eloquent models.
Author
Last update
2020/10/10 19:12
(dev-main)
License
Downloads
4
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.