We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7446a commit 10c94d5Copy full SHA for 10c94d5
1 file changed
app/Http/Controllers/Api/Game/ItemController.php
@@ -54,7 +54,13 @@ protected function getJsonColumnName(): string
54
*/
55
private function allowedIncludes(bool $includeRelatedItems = false): array
56
{
57
- $includes = ItemResource::validIncludes();
+ $includes = array_merge(
58
+ ItemResource::validIncludes(),
59
+ [
60
+ AllowedInclude::custom('shops', new PassthroughInclude),
61
+ AllowedInclude::custom('shops.items', new PassthroughInclude),
62
+ ]
63
+ );
64
65
if ($includeRelatedItems) {
66
$includes[] = AllowedInclude::custom('related_items', new PassthroughInclude);
0 commit comments