$this->id, 'name' => $this->name, 'udi' => $this->udi, 'size' => $this->size, 'specific' => $this->specific, 'note' => $this->note, 'repair' => $this->repair, 'status' => $this->status, 'creator_id' => $this->creator_id, 'creator' => UserResource::make($this->whenLoaded('creator')), 'user_id' => $this->user_id, 'user' => UserResource::make($this->whenLoaded('user')), 'package_id' => $this->package_id, 'package' => PackageResource::make($this->whenLoaded('package')), 'transfers' => TransferResource::collection($this->whenLoaded('transfers')), 'files' => MediaResource::collection($this->whenLoaded('media')), 'created_at' => $this->created_at, 'updated_at' => $this->updated_at ]; } }