[#2] some progress
This commit is contained in:
@@ -80,4 +80,14 @@ class Show extends Model
|
||||
{
|
||||
return $this->belongsToMany(Network::class, 'show_networks', 'show_id', 'network_id');
|
||||
}
|
||||
|
||||
public function productionCompanies()
|
||||
{
|
||||
return $this->belongsToMany(ProductionCompany::class, 'show_production_companies', 'show_id', 'production_company_id');
|
||||
}
|
||||
|
||||
public function productionCountries()
|
||||
{
|
||||
return $this->belongsToMany(ProductionCountry::class, 'show_production_countries', 'show_id', 'production_country_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user