feat: refactor product variant handling to use product pricing and remove unnecessary fields
This commit is contained in:
@@ -12,11 +12,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
#[Fillable([
|
||||
'producto_id',
|
||||
'slug',
|
||||
'nombre',
|
||||
'stock',
|
||||
'descripcion',
|
||||
'precio',
|
||||
])]
|
||||
class ProductVariant extends Model
|
||||
{
|
||||
@@ -29,7 +25,6 @@ class ProductVariant extends Model
|
||||
return [
|
||||
'producto_id' => 'integer',
|
||||
'stock' => 'integer',
|
||||
'precio' => 'decimal:2',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user