[#2] genres
This commit is contained in:
@@ -70,4 +70,9 @@ class Show extends Model
|
||||
{
|
||||
return $this->belongsToMany(ContentRating::class, 'show_content_ratings', 'show_id', 'content_rating_id');
|
||||
}
|
||||
|
||||
public function genres()
|
||||
{
|
||||
return $this->belongsToMany(Genre::class, 'show_genres', 'show_id', 'genre_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user