$model->id, 'uuid' => $model->uuid, 'name' => $model->name, 'description' => $model->description, 'source' => $model->source, 'target' => $model->target, 'read_only' => $model->read_only, 'user_mountable' => $model->user_mountable, ]; } /** * Return the eggs associated with this mount. */ public function includeEggs(Mount $mount): Collection|NullResource { if (!$this->authorize(AdminAcl::RESOURCE_EGGS)) { return $this->null(); } return $this->collection($mount->eggs, new EggTransformer()); } /** * Return the nodes associated with this mount. */ public function includeNodes(Mount $mount): Collection|NullResource { if (!$this->authorize(AdminAcl::RESOURCE_NODES)) { return $this->null(); } return $this->collection($mount->nodes, new NodeTransformer()); } /** * Return the servers associated with this mount. */ public function includeServers(Mount $mount): Collection|NullResource { if (!$this->authorize(AdminAcl::RESOURCE_SERVERS)) { return $this->null(); } return $this->collection($mount->servers, new ServerTransformer()); } }