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',
|
'EVIDENCIA ADICIONAL',
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($names as $name) {
|
foreach ($names as $index => $name) {
|
||||||
CatalogNameImg::create([
|
CatalogNameImg::updateOrCreate(
|
||||||
'name' => $name,
|
['id' => $index + 1],
|
||||||
]);
|
['name' => $name]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user