$this->id, 'name' => $this->name, 'note' => $this->note, 'verified' => $this->verified, 'creator_id' => $this->creator_id, 'creator' => UserResource::make($this->whenLoaded('creator')), 'user_id' => $this->user_id, 'user' => UserResource::make($this->whenLoaded('user')), 'items' => ItemResource::collection($this->whenLoaded('items')), 'transfers' => TransferResource::collection($this->whenLoaded('transfers')), 'created_at' => $this->created_at, 'updated_at' => $this->updated_at ]; } }