[#2] networks

This commit is contained in:
2025-01-08 02:15:22 +02:00
parent ddbfc95102
commit 300c2574ea
5 changed files with 116 additions and 2 deletions
+5
View File
@@ -75,4 +75,9 @@ class Show extends Model
{
return $this->belongsToMany(Genre::class, 'show_genres', 'show_id', 'genre_id');
}
public function networks()
{
return $this->belongsToMany(Network::class, 'show_networks', 'show_id', 'network_id');
}
}