8000 Merge tag 'v2.0.0-beta.2' into develop · CodingSeo/laravel-json-api@2b733f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b733f5

Browse files
committed
Merge tag 'v2.0.0-beta.2' into develop
Minor updates and fixes - refer to changelog.
2 parents d2b617e + 1028133 commit 2b733f5

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

CHANGELOG.md

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

5+
## [2.0.0-beta.2] - 2020-04-12
6+
7+
### Changed
8+
- Refactored API configuration to reduce constructor arguments in the API class.
9+
- Updated UUID dependency so that version 3 and 4 are allowed.
10+
11+
### Fixed
12+
- [#498](https://github.com/cloudcreativity/laravel-json-api/issues/498)
13+
Update exception parser interface to type-hint a `Throwable` instance instead of an
14+
`Exception`.
15+
516
## [2.0.0-beta.1] - 2020-03-04
617

718
### Added

docs/basics/schemas.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class Schema extends SchemaProvider
211211
return [
212212
'author' => [
213213
self::DATA => function () use ($post) {
214-
return $post->createdBy;
214+
return $post->author;
215215
},
216216
],
217217
];
@@ -256,7 +256,7 @@ class Schema extends SchemaProvider
256256
'author' => [
257257
self::SHOW_DATA => isset($includeRelationships['author']),
258258
self::DATA => function () use ($post) {
259-
return $post->createdBy;
259+
return $post->author;
260260
},
261261
],
262262
];
@@ -337,7 +337,7 @@ class Schema extends SchemaProvider
337337
self::SHOW_RELATED => true,
338338
self::SHOW_DATA => isset($includeRelationships['author']),
339339
self::DATA => function () use ($post) {
340-
return $post->createdBy;
340+
return $post->author;
341341
},
342342
],
343343
];

0 commit comments

Comments
 (0)
0