update fix deadcode, security

This commit is contained in:
baodev0
2026-09-28 08:26:29 +07:00
parent 3af59bd9c5
commit 82080b5b84
452 changed files with 4857 additions and 26289 deletions
-25
View File
@@ -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')