· 3 min readLaravel Immutable Attributes: guarding Eloquent columns after insert
Some columns must not change once a row exists, such as an invoice number. One declaration on the model makes attempts to change them throw an exception.
- Laravel
- Open Source
- Eloquent