PackageTrack
Sign in Get early access

spatie/laravel-enum

Laravel Enum support

3.3.0 6.0M downloads/mo #2067 most downloaded on Packagist spatie/laravel-enum

What this package is like to depend on

Last release 5 months ago

18 Mar 2026

Release timing varies

gaps range from 4 weeks to 1.1 years

Nearly every release is documented

notes for 23 of 24 stable releases

Nothing withdrawn

no release was ever pulled

7 years old

29 releases · first in 2019

1 release in the last 12 months

see the full history below

Release timeline

29 releases · May 2019 to Mar 2026
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 29
  1. 3.3.0 18 Mar 2026

    Nothing published for this version

  2. 3.2.0 25 Feb 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.1.0...3.2.0

    Open source →
    Release notes

    What's Changed

    • Laravel 12 support by @charlietennant in https://github.com/spatie/laravel-enum/pull/112

    New Contributors

    • @charlietennant made their first contribution in https://github.com/spatie/laravel-enum/pull/112

    Full Changelog: https://github.com/spatie/laravel-enum/compare/3.1.0...3.2.0

    Open source →
  3. 3.1.0 12 Jun 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.0.3...3.1.0

    Open source →
    Release notes

    What's Changed

    • add optional wirable support to enums by @macbookandrew in https://github.com/spatie/laravel-enum/pull/103

    New Contributors

    • @macbookandrew made their first contribution in https://github.com/spatie/laravel-enum/pull/103

    Full Changelog: https://github.com/spatie/laravel-enum/compare/3.0.3...3.1.0

    Open source →
  4. 3.0.3 22 Mar 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.0.2...3.0.3

    Open source →
    Release notes

    What's Changed

    • Support Laravel 11 by @justinaskav in https://github.com/spatie/laravel-enum/pull/104

    New Contributors

    • @justinaskav made their first contribution in https://github.com/spatie/laravel-enum/pull/104

    Full Changelog: https://github.com/spatie/laravel-enum/compare/3.0.2...3.0.3

    Open source →
  5. 3.0.2 10 Feb 2023
    Release notes
    • Add Laravel 10 support
    Open source →
    Release notes
    • Add Laravel 10 support
    Open source →
  6. 3.0.1 05 Feb 2022
    Release notes
    • Fix nested form data casting - #86
    Open source →
    Release notes
    • Fix nested form data casting - #86
    Open source →
  7. 3.0.0 04 Feb 2022
    Release notes

    Full Changelog: 2.5.2...3.0.0

    Open source →
    Release notes

    Full Changelog: https://github.com/spatie/laravel-enum/compare/2.5.2...3.0.0

    Open source →
  8. 2.5.2 24 Jul 2021
    Release notes
    • fix :attribute replacement in \Spatie\Enum\Laravel\Rules\EnumRule::message() to respect custom attribute translations - #77
    Open source →
    Release notes
    • fix :attribute replacement in \Spatie\Enum\Laravel\Rules\EnumRule::message() to respect custom attribute translations - #77
    Open source →
  9. 2.5.1 31 May 2021
    Release notes
    • fix comma format with empty string value in database - #73
    • replaced deprecated make() call with from() - #74
    Open source →
    Release notes
    • fix comma format with empty string value in database - #73
    • replaced deprecated make() call with from() - #74
    Open source →
  10. 2.5.0 01 May 2021
    Release notes
    • add comma format to \Spatie\Enum\Laravel\Casts\EnumCollectionCast - #70
    • add \Spatie\Enum\Laravel\Enum::toRule() method - #66
    Open source →
    Release notes
    • add comma format to \Spatie\Enum\Laravel\Casts\EnumCollectionCast - #70
    • add \Spatie\Enum\Laravel\Enum::toRule() method - #66
    Open source →
  11. 2.4.0 19 Feb 2021
    Release notes
    • add implicit and explicit route binding - #65
    • drop unusable Spatie\Enum\Laravel\Http\Middleware\TransformEnums middleware in favor of route binding

    Warning: the dropped TransformEnums middleware was unusable - but if you've found a way to use it in your project this release will be breaking and you will have to switch to form requests or route binding.

    Open source →
  12. 2.3.0 12 Feb 2021
    Release notes
    • accept enum instance in validation rule (Livewire) - #64
    Open source →
  13. 2.2.0 24 Nov 2020
    Release notes
    • add customized enum stub logic - #58
    Open source →
  14. 2.1.0 22 Oct 2020
    Release notes
    Open source →
  15. 2.0.1 03 Oct 2020
    Release notes
    • fix \Spatie\Enum\Laravel\Rules\EnumRule with invalid types passed in - #54
    Open source →
  16. 2.0.0 21 Sep 2020
    Release notes
    • upgrade spatie/enum to v3 - spatie/enum#56

    • drop PHP support for 7.2 and 7.3

    • drop Laravel support for 5.8 and 6.0 and 7.0

    • drop several custom exceptions:

      • ExpectsArrayOfEnumsField
      • InvalidEnumError
      • NoSuchEnumField
    • replace HasEnums trait by custom casts and default laravel query builder logic

    • add custom casts EnumCast and EnumCollectionCast

    • reduce make:enum command to --method option - no value/label mapping or method name formatting any more

    • add Laravel focused base Enum class which implements Jsonable, Castable

    • drop enum_index|EnumIndexRule, enum_name|EnumNameRule and enum_value|EnumValueRule validation rules

    • add Faker provider to generate random enum instances, values and labels \Spatie\Enum\Laravel\Faker\FakerEnumProvider

    Open source →
  17. 2.0.0-rc.4 17 Sep 2020 pre-release

    Nothing published for this version

  18. 2.0.0-rc.2 09 Sep 2020 pre-release

    Nothing published for this version

  19. 1.6.1 09 Sep 2020
    Release notes
    • Support for Laravel 8
    Open source →
  20. 1.6.0 30 Apr 2020
    Release notes
    • add array of enums cast #43
    Open source →
  21. 1.5.0 17 Apr 2020
    Release notes
    • add classname to make command output #41
    Open source →
  22. 1.4.0 11 Mar 2020
    Release notes
    • add request transformer #7

      • form request: Spatie\Enum\Laravel\Http\Requests\TransformsEnums
      • middleware: Spatie\Enum\Laravel\Http\Middleware\TransformEnums
      • macro: Illuminate\Http\Request::transformEnums()
    Open source →
  23. 1.3.0 02 Mar 2020
    Release notes
    • add Laravel 7 support #34
    Open source →
  24. 1.2.0 16 Jan 2020
    Release notes
    • add enum validation rules #13
    Open source →
  25. 1.1.0 16 Jan 2020
    Release notes
    • add nullable model attribute enum castings #25 / #29
    Open source →
  26. 1.0.1 02 Jan 2020
    Release notes
    • require symfony/console with PHP7.4 compatible version
    Open source →
  27. 1.0.0-beta.3 05 Sep 2019 pre-release

    Nothing published for this version

  28. 1.0.0-beta.2 05 Aug 2019 pre-release

    Nothing published for this version

  29. 1.0.0-beta.1 17 May 2019 pre-release

    Nothing published for this version

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