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