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