File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 22All 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
Original file line number Diff line number Diff 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 ];
You can’t perform that action at this time.
0 commit comments