Enums purpose #34036
Unanswered
renatoperes01
asked this question in
General
Enums purpose
#34036
Replies: 1 comment
-
@renatoperes01 PHP has a native Class to handle/simulate Enums, take a look: https://www.php.net/manual/pt_BR/class.splenum.php You don't need any package, nor Laravel built-in solution if you just want to make a Class an enum. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys, please let me know what do you think about add this solution native to the framework?
https://medium.com/@renatoperes01/how-to-handle-enums-in-laravel-without-external-packages-1794f3f3294e
If It sounds interesting for you, It will be a pleasure to make pull request. I think this is an awesome solution to handle enums.
Beta Was this translation helpful? Give feedback.
All reactions