ldc-enum/changelog.md
Jérémy Munsch 45a1ccd27f Breaking change
BaseEnum to Array indexes where cast to integers
  This would break enum values that where numeric strings
  ToArray now returns a list of BaseEnums
2021-03-02 21:24:04 +01:00

542 B

Changelog

All notable changes to Enum will be documented in this file.

Version 0.0.1

Initial release

Version 0.0.2

- Add

  • Enum cast in Models

    usage: Put this in your model

    use CastsEnums;

    protected $enumCasts = [ 'status' => OrderStatus::class // This is a class that extends \Kwaadpepper\Enum\BaseEnum ];

Version 0.1.0

- Changed

  • toArray Method now returns an array of BaseEnums this is because php numeric string array indexes to int, this would break origin enum values