arreglado nombre de tabla
This commit is contained in:
parent
76199273c9
commit
27960f17e7
|
@ -101,7 +101,7 @@ private function insertCaracteristicas($caracteristicasToInsert) : void {
|
|||
$match = Producto::where('name',$name)->first();
|
||||
if ($match) {
|
||||
foreach ($item['caracteristicas'] as $key => $caracteristica) {
|
||||
DB::table('productos_caracteristicas')->insert([
|
||||
DB::table('producto_caracteristica')->insert([
|
||||
'producto_id' => $match->id,
|
||||
'caracteristica_id' => $caracteristica,
|
||||
]);
|
||||
|
|
Loading…
Reference in New Issue