We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cff3dc9 commit 74961b2Copy full SHA for 74961b2
app/Http/Resources/TeamResource.php
@@ -19,7 +19,7 @@ public function toArray(Request $request): array
19
'name' => $this->name,
20
'created_at' => $this->created_at,
21
'updated_at' => $this->updated_at,
22
- 'users' => UserResource::collection($this->users),
+ 'users' => UserResource::collection($this->allUsers()),
23
];
24
}
25
0 commit comments