NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #2897 most downloaded on Packagist
Enum attribute casting for Eloquent models
Last release 5 months ago
17 Apr 2026
Release timing varies
gaps range from 2 weeks to 1.2 years
Nearly every release is documented
notes for 24 of 24 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
24 releases · first in 2017
Dropped Laravel 8, 9, and 10 support (use 1.10 or lower for these)
##### 2025-03-03 - Added Laravel 12 support - Added PHP 8.4 support
One column per quarter.
Added Laravel 11 support (experimental, pre-release)
##### 2023-11-17 - Added PHP 8.3 support
Releases #16
##### 2023-02-16 - Added Laravel 10 support - Added PHP 8.2 support
Fixed casting behavior so that other mutators defined on field are also being called before passing the value to the enum constructor
##### 2022-03-10 - Added Enum v4 support
Tiny composer.json change for final Laravel 9.0 (removed minimum-stability: dev)
Dropped PHP 7.3 and PHP 7.4 support
Dropped PHP 7.1 & PHP 7.2 support
Fixed to array conversion exception when the enum field is not actually present in the model
##### 2020-09-12 - Added Laravel 8 support
##### 2020-03-06 - Laravel 7 and PHP 7.4 support
PhpUnit compatibility fix (affects dev mode only)
Added support for Eloquent toArray() (enums field values are properly included)
toArray() (enums field values are properly included)##### 2019-09-08 - Fixed Laravel 6.0 Support
Added make:enum commands (when using in a Laravel application)
Added Laravel Collective Forms compatibility (optional)
isEnumAttribute() method became protected (was private before)Fixed namespace creep bug with @notation on extended classes
Fixed Laravel 5.0 & 5.1 incompatibility introduced with v1.1.1
Fixed bug with ClassName@method notation resolution when the host model's base class name was present in the namespace.
ClassName@method notation resolution when the host
model's base class name was present in the namespace.Added support for ClassName@method notation
ClassName@method notationInitial release for Enum 2.0+, Eloquent 5.0 - 5.5
$cast property on models, but internally hooks into the mutator/accessor mechanismYour coding agent can read these notes before it upgrades. Set up the MCP server →