Features of the spatie/laravel-enum wrapper
mainThe Laravel wrapper package provides several specialized features for seamless integration with the Laravel framework:
- Model Attribute casting: Automatically cast database columns to Enum instances.
- Request Validation Rule: Use Enums directly within Laravel validation rules.
- Request Data Transformation: Automatically transform incoming request data into Enum instances.
- Artisan Make Command: Generate new Enum classes via the CLI.
- Faker Provider: Integrate Enums with Faker for testing.