*/ public function toArray(Request $request): array { return $this->collection->transform(function ($user) { return new UserResource($user); })->toArray(); } }