[#2] tv processing progress, credits

This commit is contained in:
2025-01-04 04:02:10 +02:00
parent cbb7b79c69
commit 8f2c48d847
6 changed files with 301 additions and 4 deletions
+10
View File
@@ -35,4 +35,14 @@ class Show extends Model
'vote_average',
'vote_count',
];
public function castList()
{
return $this->belongsToMany(Person::class, 'show_cast', 'show_id', 'person_id');
}
public function crewList()
{
return $this->belongsToMany(Person::class, 'show_crew', 'show_id', 'person_id');
}
}