belongsTo(Page::class); } public function getParsedTypeAttribute(): array { return ['name' => $this->type, 'title' => RegistryType::TITLES[$this->type] ?? null]; } }