feat: add Fecha attribute seeder and integrate FiestaFutbolInfantilProductSeeder

This commit is contained in:
2026-07-15 14:21:19 -03:00
parent cababe1a43
commit 716d8e447c
3 changed files with 126 additions and 0 deletions

View File

@@ -110,6 +110,29 @@ class AttributeSeeder extends Seeder
],
]);
// Seed Fecha attribute
$existingFecha = Attribute::query()
->where('tenant_codigo', $tenant->codigo)
->where('codigo', 'fecha')
->first();
if ($existingFecha) {
Product::deleteAttribute($existingFecha);
}
Product::createAttribute($tenant, [
'codigo' => 'fecha',
'nombre' => 'Fecha',
'type' => FieldType::Select->value,
'is_required' => true,
'options' => [
['value' => '2026-10-09', 'label' => '09/10/2026', 'sort_order' => 1],
['value' => '2026-10-10', 'label' => '10/10/2026', 'sort_order' => 2],
['value' => '2026-10-11', 'label' => '11/10/2026', 'sort_order' => 3],
['value' => '2026-10-12', 'label' => '12/10/2026', 'sort_order' => 4],
],
]);
}
}
}