All notable changes to laravel-backed-enums
will be documented in this file.
- Add make command by @Jim-Webfox in #40
Full Changelog: https://github.com/webfox/laravel-backed-enums/compare/v2.3.1...v2.4.0
- Add unit/feature tests by @hailwood in #25
- Fix
::labels()
method by @hailwood in #25 - Add
AsFullEnumCollection::of(MyEnum::class)
for casts by @hailwood in #25 - Fix Issue #22: Replace 'self' with 'static' by @vikas020807 in #24
- @vikas020807 made their first contribution in #24
Full Changelog: https://github.com/webfox/laravel-backed-enums/compare/v2.3.0...v2.3.1
- Bumping to version 11 of the Laravel framework (ahead of launch tomorrow) by @csoutham in #23
- Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in #19
- @csoutham made their first contribution in #23
Full Changelog: https://github.com/webfox/laravel-backed-enums/compare/v2.2.0...v2.3.0
- Add EnumCollection support by @hailwood in #17
Fix toJson method to actually return a json string instead of an array.
Add new
AsFullEnumCollection
cast - See the readme for usage and a description of why this is useful.
Full Changelog: https://github.com/webfox/laravel-backed-enums/compare/v2.1.1...v2.2.0
Full Changelog: https://github.com/webfox/laravel-backed-enums/compare/v2.1.0...v2.1.1
- Add static
rule()
method as a shortcut for the laravel validation rule.
- Use value in
map()
method
- Add additional comparison methods
Full Changelog: https://github.com/webfox/laravel-backed-enums/compare/v1.1.0...v1.2.3
- Add support for direct value comparisons
Full Changelog: https://github.com/webfox/laravel-backed-enums/compare/v1.2.1...v1.2.2
- Add support for laravel 10
Full Changelog: https://github.com/webfox/laravel-backed-enums/compare/v1.1.0...v1.2.1
- Add support for rendering enums in blade templates
Full Changelog: https://github.com/webfox/laravel-backed-enums/compare/v1.0.1...v1.1.0
Added new fields to toArray, minor bug fixes
Initial release