Added the data to the Resume <-> Resume Component relationship
Some checks failed
linter / quality (push) Successful in 3m3s
tests / ci (push) Failing after 6m29s

This commit is contained in:
2025-08-16 14:51:21 +02:00
parent 8fdd3fc130
commit c9f499cf2d
3 changed files with 9 additions and 2 deletions

View File

@@ -27,6 +27,9 @@ class Resume extends Model
public function components(): BelongsToMany
{
return $this->belongsToMany(ResumeComponent::class, 'resume_resume_component')->withPivot('order')->withTimestamps()->orderBy('order');
return $this->belongsToMany(ResumeComponent::class, 'resume_resume_component')
->withPivot('order', 'data')
->withTimestamps()
->orderBy('order');
}
}