fix: seeder catalogo nombres de img
This commit is contained in:
parent
46367238f5
commit
7c530595f4
@ -54,10 +54,11 @@ public function run(): void
|
||||
'EVIDENCIA ADICIONAL',
|
||||
];
|
||||
|
||||
foreach ($names as $name) {
|
||||
CatalogNameImg::create([
|
||||
'name' => $name,
|
||||
]);
|
||||
foreach ($names as $index => $name) {
|
||||
CatalogNameImg::updateOrCreate(
|
||||
['id' => $index + 1],
|
||||
['name' => $name]
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user