PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 24
  1. 1.11.0 17 Apr 2026
    Release notes
    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)
    Open source →
  2. 1.10.0 03 Mar 2025
    Release notes
    2025-03-03
    • Added Laravel 12 support
    • Added PHP 8.4 support
    Open source →
  3. 1.9.3 08 Jan 2024
    Release notes
    2024-01-08
    • Added Laravel 11 support (experimental, pre-release)
    Open source →
  4. 1.9.2 17 Nov 2023
    Release notes
    2023-11-17
    • Added PHP 8.3 support
    Open source →
  5. 1.9.1 25 Sep 2023
    Release notes
    Open source →
    Release notes
    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
    Open source →
  6. 1.9.0 16 Feb 2023
    Release notes
    2023-02-16
    • Added Laravel 10 support
    • Added PHP 8.2 support
    Open source →
  7. 1.8.1 11 Mar 2022
    Release notes
    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
    Open source →
  8. 1.8.0 10 Mar 2022
    Release notes
    2022-03-10
    • Added Enum v4 support
    Open source →
  9. 1.7.2 09 Feb 2022
    Release notes
    2022-02-09
    • Tiny composer.json change for final Laravel 9.0 (removed minimum-stability: dev)
    Open source →
  10. 1.7.1 27 Jan 2022
    Release notes
    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
    Open source →
  11. 1.7.0 28 Nov 2020
    Release notes
    2020-11-28
    • Dropped PHP 7.1 & PHP 7.2 support
    • Dropped Laravel 5 support
    • Added PHP 8 support
    Open source →
  12. 1.6.1 04 Nov 2020
    Release notes
    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
    Open source →
  13. 1.6.0 12 Sep 2020
    Release notes
    2020-09-12
    • Added Laravel 8 support
    Open source →
  14. 1.5.0 05 Mar 2020
    Release notes
    2020-03-06
    • Laravel 7 and PHP 7.4 support
    Open source →
  15. 1.4.1 24 Nov 2019
    Release notes
    2019-11-24
    • PhpUnit compatibility fix (affects dev mode only)
    Open source →
  16. 1.4.0 03 Nov 2019
    Release notes
    2019-11-03
    • Added support for Eloquent toArray() (enums field values are properly included)
    Open source →
  17. 1.3.1 08 Sep 2019
    Release notes
    2019-09-08
    • Fixed Laravel 6.0 Support
    Open source →
  18. 1.3.0 08 Sep 2019
    Release notes
    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
    Open source →
  19. 1.2.0 04 Nov 2018
    Release notes
    2018-11-04
    • Added Laravel Collective Forms compatibility (optional)
    • isEnumAttribute() method became protected (was private before)
    • Laravel 5.6 & 5.7 are supported
    Open source →
  20. 1.1.3 08 Dec 2017
    Release notes
    2017-12-08
    • Fixed namespace creep bug with @notation on extended classes
    • PHP 7.2 is supported (Laravel 5.4 & 5.5)
    Open source →
  21. 1.1.2 24 Nov 2017
    Release notes
    2017-11-24
    • Fixed Laravel 5.0 & 5.1 incompatibility introduced with v1.1.1
    Open source →
  22. 1.1.1 24 Nov 2017
    Release notes
    2017-11-24
    • Fixed bug with ClassName@method notation resolution when the host model's base class name was present in the namespace.
    Open source →
  23. 1.1.0 16 Oct 2017
    Release notes
    2017-10-16
    • Added support for ClassName@method notation
    • Travis tests PHP 7 with Laravel 5.0-5.5 & PHP7.1 with Laravel 5.4-5.5
    Open source →
  24. 1.0.0 06 Oct 2017
    Release notes
    2017-10-06
    • Initial release for Enum 2.0+, Eloquent 5.0 - 5.5
    • Works like Eloquent's $cast property on models, but internally hooks into the mutator/accessor mechanism
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive