Laravel Enum

Simple, extensible and powerful enumeration implementation for Laravel


Ben Sampson


Enums aren't natively supported in PHP but an equivalent is fairly easy to achieve using constants on a class. Furthermore, I've created a Laravel package which allows you access helper functions such as listing keys and values, attaching descriptions to values, and validating requests which are expecting enum values.
Visit Site
Related Projects