We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d32c4b4 + 329f890 commit 6148068Copy full SHA for 6148068
CHANGELOG.md
@@ -2,6 +2,12 @@
2
3
All notable changes to `laravel-backed-enums` will be documented in this file.
4
5
+## v2.0.0 - 2023-08-28
6
+
7
+### What's Changed
8
9
+- Use value in `map()` method
10
11
## v1.2.3 - 2023-03-02
12
13
### What's Changed
src/IsBackedEnum.php
@@ -39,7 +39,7 @@ public static function map(): array
39
$array = [];
40
41
foreach (self::cases() as $enum) {
42
- $array[$enum->name] = $enum->label();
+ $array[$enum->value] = $enum->label();
43
}
44
45
return $array;
0 commit comments