Immutability is a simple package that is used in your Eloquent models to enforce attribute immutability. Immutable attributes may be set, and changed once, but once the model is saved, the value can not be changed.
Immutability is open-sourced software licensed under the MIT license
To get started with Immutability, add to your composer.json file as a dependency:
composer require davidmpeace/immutability
To use the Immutability library, you simply need to use the Immutability trait for any model you wish to identify immutable attributes for. Typically, you would want to implement the trait in your super-class so that all your sub-classes will automatically inherit the functionality.