This commit is contained in:
lizandrogd
2026-01-21 09:34:34 -05:00
parent 3709078404
commit 39e62d67f0
3 changed files with 40 additions and 1 deletions
+7
View File
@@ -43,6 +43,13 @@ class Producto extends Model
'estado' => 'boolean',
];
/**
* Valores por defecto para atributos del modelo
*/
protected $attributes = [
'imagen' => '',
];
public function variants(): HasMany
{
return $this->hasMany(ProductVariant::class);