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