Skip to content

Commit 0a969b1

Browse files
committed
[Feature] Update dependencies to add new features
Schema model classes can now be parent classes or interfaces. Closes #58 Custom field hydrators for Eloquent fields (set via the `fillUsing()` method) now receive all the validated data as their fourth argument. This allows the custom hydrator to calculate a value to fill into the model based on multiple JSON:API field values. Closes #65
1 parent 05d307b commit 0a969b1

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Diff for: CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
All notable changes to this project will be documented in this file. This project adheres to
44
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
55

6+
## Unreleased
7+
8+
### Added
9+
10+
- [#65](https://github.com/laravel-json-api/laravel/issues/65) **BREAKING** The `fill()` method on Eloquent fields has
11+
been updated to receive all the validated data as its third argument. This change was made to allow fields to work out
12+
the value to fill into the model based on other JSON:API field values. If you have written any custom fields, you will
13+
need to update the `fill()` method on your field class.
14+
- [#58](https://github.com/laravel-json-api/laravel/issues/58) Schema model classes can now be a parent class or an
15+
interface.
16+
617
## [1.0.0-beta.1] - 2021-03-30
718

819
### Added

Diff for: composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
"require": {
2626
"php": "^7.4|^8.0",
2727
"ext-json": "*",
28-
"laravel-json-api/core": "^1.0.0-beta.1",
29-
"laravel-json-api/eloquent": "^1.0.0-beta.1",
28+
"laravel-json-api/core": "^1.0.0-beta.2",
29+
"laravel-json-api/eloquent": "^1.0.0-beta.2",
3030
"laravel-json-api/encoder-neomerx": "^1.0.0-beta.1",
3131
"laravel-json-api/exceptions": "^1.0.0-beta.1",
3232
"laravel-json-api/spec": "^1.0.0-beta.1",
3333
"laravel-json-api/validation": "^1.0.0-beta.1",
3434
"laravel/framework": "^8.0"
3535
},
3636
"require-dev": {
37-
"laravel-json-api/hashids": "^1.0.0-beta.1",
37+
"laravel-json-api/hashids": "^1.0.0-beta.2",
3838
"laravel-json-api/testing": "^1.0.0-beta.1",
3939
"orchestra/testbench": "^6.9",
4040
"phpunit/phpunit": "^9.5"

0 commit comments

Comments
 (0)