Skip to content

Commit

Permalink
Added Enum v4 support (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Mar 10, 2022
1 parent a9c24b2 commit afb2214
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
### Konekt Enum Eloquent

## Unreleased
##### 2022-03-XX

- Added Enum v4 support

## 1.7.2
##### 2022-02-09

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit afb2214

Please sign in to comment.