arreglado nombre de tabla
This commit is contained in:
parent
76199273c9
commit
27960f17e7
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ class CanastaSeeder extends Seeder
|
||||||
$match = Producto::where('name',$name)->first();
|
$match = Producto::where('name',$name)->first();
|
||||||
if ($match) {
|
if ($match) {
|
||||||
foreach ($item['caracteristicas'] as $key => $caracteristica) {
|
foreach ($item['caracteristicas'] as $key => $caracteristica) {
|
||||||
DB::table('productos_caracteristicas')->insert([
|
DB::table('producto_caracteristica')->insert([
|
||||||
'producto_id' => $match->id,
|
'producto_id' => $match->id,
|
||||||
'caracteristica_id' => $caracteristica,
|
'caracteristica_id' => $caracteristica,
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue