eloquent/enumeration
Eloquent Enumeration brings typed enum support to Laravel’s Eloquent models. Define reusable enums, cast attributes to enum instances, and keep status or type fields type-safe and expressive without leaving familiar Eloquent conventions.
eloquent/enumeration is a pre-PHP 8.1 enum abstraction for PHP. It can fit only legacy PHP/Laravel estates that cannot use native enums. It is not a strategic fit for modern Laravel applications, where native backed enums, Eloquent casts, validation rules, and serialization support are first-class. The package is PHP-level rather than Laravel-specific, so any Eloquent cast, validation, or API serialization behavior likely requires custom glue.eloquent/enumeration once no runtime or test references remain.How can I help you explore Laravel packages today?