diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fc3ee5b..1d63263 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: matrix: php: ['8.0', '8.1'] laravel: ['8.22', '8.83', '9.0'] - enum: ['2', '3'] + enum: ['2', '3', '4'] exclude: - php: '8.1' laravel: '8.22' diff --git a/Changelog.md b/Changelog.md index c9af379..b8c1284 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,11 @@ # Changelog ### Konekt Enum Eloquent +## Unreleased +##### 2022-03-XX + +- Added Enum v4 support + ## 1.7.2 ##### 2022-02-09 diff --git a/README.md b/README.md index 2255e8e..0773407 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,9 @@ [![StyleCI](https://styleci.io/repos/105900484/shield?branch=master)](https://styleci.io/repos/105900484) [![MIT Software License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE) -This package provides support for auto casting [konekt enum](https://konekt.dev/enum) fields in [Eloquent models](https://laravel.com/docs/8.x/eloquent-mutators). +This package provides support for auto casting [konekt enum](https://konekt.dev/enum) fields in [Eloquent models](https://laravel.com/docs/9.x/eloquent-mutators). -> Supported Konekt Enum versions are 2.0+ or 3.0+ and Eloquent 8.0+ +> Supported Konekt Enum versions are 2.x, 3.x and 4.x with Eloquent 8.x or 9.x [Changelog](Changelog.md) diff --git a/composer.json b/composer.json index 91491ca..de4565f 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ ], "require": { "php": "^8.0", - "konekt/enum": "^2.0.2 || ^3.0.0", + "konekt/enum": "^2.0.2 || ^3.0 | ^4.0", "illuminate/database": "8.*|9.*" }, "require-dev": {