konekt/enum-eloquent
Enum attribute casting for Eloquent models
1.11.0
2.3M downloads/mo
#2193 most downloaded on Packagist
artkonekt/enum-eloquent
What this package is like to depend on
Last release 4 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
1 release in the last 12 months
see the full history below
Release timeline
24 releases · Oct 2017 to Apr 2026
2018
2019
2020
2021
2022
2023
2024
2025
2026
Releases
latest 24-
1.11.017 Apr 2026Release notes
Open source →2026-04-17
- Added Laravel 13 support
- Added PHP 8.5 support
- Dropped PHP 8.0 & 8.1 support
- Dropped Laravel 8, 9, and 10 support (use 1.10 or lower for these)
-
1.10.003 Mar 2025 -
1.9.308 Jan 2024 -
1.9.217 Nov 2023 -
1.9.125 Sep 2023Release notes
Open source →2023-09-25
- Bumped minimal Laravel version to 8.75
- Fixed issue where CastEnum did not take in account hidden or visible properties from Eloquent
-
1.9.016 Feb 2023 -
1.8.111 Mar 2022Release notes
Open source →2022-03-11
- Fixed casting behavior so that other mutators defined on field are also being called before passing the value to the enum constructor
-
1.8.010 Mar 2022 -
1.7.209 Feb 2022Release notes
Open source →2022-02-09
- Tiny composer.json change for final Laravel 9.0 (removed minimum-stability: dev)
-
1.7.127 Jan 2022Release notes
Open source →2022-01-27
- Added PHP 8.1 support
- Added Laravel 9 support
- Dropped PHP 7.3 and PHP 7.4 support
- Dropped Laravel 6 and Laravel 7 support
- Changed CI from Travis to Github Actions
- Changed coding style to PSR-12 and using strict types across all classes
-
1.7.028 Nov 2020Release notes
Open source →2020-11-28
- Dropped PHP 7.1 & PHP 7.2 support
- Dropped Laravel 5 support
- Added PHP 8 support
-
1.6.104 Nov 2020Release notes
Open source →2020-11-04
- Fixed to array conversion exception when the enum field is not actually present in the model
- Test suite fixes for Composer v2 compatibility (dropped Ocramius Package Manager dev requirement)
- Various test suite improvements
-
1.6.012 Sep 2020 -
1.5.005 Mar 2020 -
1.4.124 Nov 2019 -
1.4.003 Nov 2019Release notes
Open source →2019-11-03
- Added support for Eloquent
toArray()(enums field values are properly included)
- Added support for Eloquent
-
1.3.108 Sep 2019 -
1.3.008 Sep 2019Release notes
Open source →2019-09-08
- Added make:enum commands (when using in a Laravel application)
- Enum 3.0.0 is supported
- Dropped PHP 7.0 Support
- Added Laravel 6.0 Support
- Updated references to https://konekt.dev/enum website
-
1.2.004 Nov 2018Release notes
Open source →2018-11-04
- Added Laravel Collective Forms compatibility (optional)
isEnumAttribute()method became protected (was private before)- Laravel 5.6 & 5.7 are supported
-
1.1.308 Dec 2017Release notes
Open source →2017-12-08
- Fixed namespace creep bug with @notation on extended classes
- PHP 7.2 is supported (Laravel 5.4 & 5.5)
-
1.1.224 Nov 2017Release notes
Open source →2017-11-24
- Fixed Laravel 5.0 & 5.1 incompatibility introduced with v1.1.1
-
1.1.124 Nov 2017Release notes
Open source →2017-11-24
- Fixed bug with
ClassName@methodnotation resolution when the host model's base class name was present in the namespace.
- Fixed bug with
-
1.1.016 Oct 2017Release notes
Open source →2017-10-16
- Added support for
ClassName@methodnotation - Travis tests PHP 7 with Laravel 5.0-5.5 & PHP7.1 with Laravel 5.4-5.5
- Added support for
-
1.0.006 Oct 2017Release notes
Open source →2017-10-06
- Initial release for Enum 2.0+, Eloquent 5.0 - 5.5
- Works like Eloquent's
$castproperty on models, but internally hooks into the mutator/accessor mechanism