What problem does it solve?
PHP enums in Laravel projects can become boilerplate-heavy and hard to maintain; this Skill provides a trait-enabled pattern and tooling for clean, scalable enum usage with ArchTech\Enums.
Core Features & Use Cases
- 7 Traits available: InvokableCases, Names, Values, Options, From, Metadata, Comparable to empower enums with helpers, mappings, and metadata.
- Laravel integration: casts in Eloquent, validation rules, and metadata-driven behavior to simplify domain modeling.
- Use Case: Define domain enums in App\Enums and reuse across models, requests, factories, and UI components.
Quick Start
Create a new enum under App\Enums, apply the trait set, and reference it in models, requests, and factories to leverage typed values and metadata.