All Notable changes to laravel-enum
will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
- PHP 8 support
- Dropped PHP 7.2 support
- Migrated to GitHub actions
Laravel 8 support
- Laravel 7.x support
- PHP 7.4 support
- Dropped all laravel versions lower than 7
- Minimum required PHP version upped to 7.2.5
- Implemented enum casting with native custom casts feature
- Exception will be thrown if you were trying to save invalid enum value
- Laravel 6.0 support
- Minimum required PHP version upped to 7.2
- Dropped support of unsupported Laravel versions
Added ability to pass custom values into make:enum
command. check out
Added ability to check multiple enum values with is()
or isAny()
methods
Laravel 5.8 support
- Support to validate enum by key
toArray(false)
now not returns__default => null
if__default
not defined
- Laravel 5.7 support
- __default constant to enum.stub file.