[#2] tv processing progress, credits
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user