diff --git a/app/Traits/Enum/WithComment.php b/app/Traits/Enum/WithComment.php new file mode 100644 index 0000000..d4bf58a --- /dev/null +++ b/app/Traits/Enum/WithComment.php @@ -0,0 +1,11 @@ + "{$case->value}: {$case->label()}", self::cases())); + } +} diff --git a/app/Traits/Enum/WithValue.php b/app/Traits/Enum/WithValue.php new file mode 100644 index 0000000..47d3487 --- /dev/null +++ b/app/Traits/Enum/WithValue.php @@ -0,0 +1,11 @@ + $case->value, self::cases()); + } +}