orkhanahmadov/eloquent-enum-cast
Eloquent Enum Cast lets Laravel Eloquent models cast attributes to native PHP 8 enums. Declare an enum in your model's casts array and read database values as typed enum instances, keeping code type-safe and readable without manual conversion logic.
|
Person
|
Packages
|
Contributions
|
Followers
|
|
|---|---|---|---|---|
|
Orkhan Ahmadov
@orkhanahmadov |
20 | 374 | 113 |
View on GitHub
|
How can I help you explore Laravel packages today?