This commit is contained in:
2025-01-08 02:08:41 +02:00
parent 60ee3bb759
commit ddbfc95102
3 changed files with 68 additions and 0 deletions
+5
View File
@@ -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');
}
}