update fix deadcode, security
This commit is contained in:
@@ -74,11 +74,6 @@ class Product extends Model
|
||||
return $this->belongsTo(ProductCategories::class, 'product_categories_id');
|
||||
}
|
||||
|
||||
public function servicePlan()
|
||||
{
|
||||
return $this->belongsTo(ServicePlan::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Relationship: Product has many OS versions (pivot table: os_product)
|
||||
*/
|
||||
@@ -97,16 +92,6 @@ class Product extends Model
|
||||
->withTimestamps();
|
||||
}
|
||||
|
||||
/**
|
||||
* Relationship: Product has many Control Panels (for Hosting)
|
||||
*/
|
||||
public function controlPanels()
|
||||
{
|
||||
return $this->belongsToMany(ControlPanel::class, 'product_control_panel')
|
||||
->withPivot(['price_modifier', 'is_default'])
|
||||
->withTimestamps();
|
||||
}
|
||||
|
||||
/**
|
||||
* Relationship: Product has many pricings
|
||||
*/
|
||||
@@ -148,16 +133,6 @@ class Product extends Model
|
||||
return $this->belongsTo(ModuleIpAddress::class, 'module_ip_address');
|
||||
}
|
||||
|
||||
public function provisioningHost()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\ModuleHost::class, 'module_host_id');
|
||||
}
|
||||
|
||||
public function provisioningDatastore()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\ModuleDatastore::class, 'module_datastore_id');
|
||||
}
|
||||
|
||||
public function addons()
|
||||
{
|
||||
return $this->hasMany(Addon::class, 'type', 'product_type')
|
||||
|
||||
Reference in New Issue
Block a user