[#2] work on tv series processing
This commit is contained in:
@@ -45,4 +45,14 @@ class Show extends Model
|
||||
{
|
||||
return $this->belongsToMany(Person::class, 'show_crew', 'show_id', 'person_id');
|
||||
}
|
||||
|
||||
public function images()
|
||||
{
|
||||
return $this->belongsToMany(Image::class, 'show_images', 'show_id', 'image_id');
|
||||
}
|
||||
|
||||
public function videos()
|
||||
{
|
||||
return $this->belongsToMany(Video::class, 'show_videos', 'show_id', 'video_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user