Skip to content

Commit 21e3273

Browse files
committed
Enable relationship includes in index action
1 parent eddaa93 commit 21e3273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/JsonApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function indexAction(Request $request, $query = null)
7171
return $this->error(Response::HTTP_BAD_REQUEST, 'Invalid query parameters');
7272
}
7373

74-
return new JsonApiResponse($this->transformCollection($records, $params['fields']));
74+
return new JsonApiResponse($this->transformCollection($records, $params['fields'], $params['include']));
7575
}
7676

7777
/**

0 commit comments

Comments
 (0)