diff --git a/UPGRADE-0.8.md b/UPGRADE-0.8.md index 68663168..673d0cc3 100644 --- a/UPGRADE-0.8.md +++ b/UPGRADE-0.8.md @@ -75,7 +75,7 @@ JsonApi::api('default', [ 'namespace' => 'Api', 'middleware' => ['my-middleware'], ], function ($api, $router) { - $api->resource('posts', ['has-many' => ['comments', 'tags']); + $api->resource('posts', ['has-many' => ['comments', 'tags']]); $api->resource('comments', ['has-one' => 'post']); }); ```