$model->uuid, 'type' => $model->parsedType, 'name' => $model->name, 'created_at' => $model->created_at ? $model->created_at->toIso8601String() : null, 'updated_at' => $model->updated_at ? $model->updated_at->toIso8601String() : null ]; } public function includePage(Registry $model): ?Item { return $model->page ? $this->item($model->page, new PageTransformer()) : null; } public function includeCategories(Registry $model): Collection { return $this->collection($model->rootCategories, new CategoryTransformer()); } public function includeEntries(Registry $model): Collection { return $this->collection($model->objects, new ObjectTransformer()); } public function includePermissions(Registry $model): Primitive { return $this->primitive((new PermissionsService($model))->get()); } }