Download the PHP package hareland/laravel-immutable-attributes without Composer
On this page you can find all versions of the php package hareland/laravel-immutable-attributes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hareland/laravel-immutable-attributes
More information about hareland/laravel-immutable-attributes
Files in hareland/laravel-immutable-attributes
Download hareland/laravel-immutable-attributes
More information about hareland/laravel-immutable-attributes
Files in hareland/laravel-immutable-attributes
Vendor hareland
Package laravel-immutable-attributes
Short Description Make laravel model attributes immutable
License MIT
Package laravel-immutable-attributes
Short Description Make laravel model attributes immutable
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-immutable-attributes
Laravel Immutable Model Attributes
Create immutable attributes on your Laravel models. Simply use the trait.
Installation
Requirements: PHP 8.1+ and Laravel 8+
Define Immutable Attributes
Define the attributes to be immutable on your model:
In this example, label
and price
can be set on model creation, however, the attributes will not persist changes of their value to a database on update.
All versions of laravel-immutable-attributes with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
The package hareland/laravel-immutable-attributes contains the following files
Loading the files please wait ....