8000 new games seeder · JAVI-CC/Laravel-API-Server@d89e2fe · GitHub
[go: up one dir, main page]

Skip to content

Commit d89e2fe

Browse files
committed
new games seeder
1 parent 3663937 commit d89e2fe

File tree

5 files changed

+55
-1
lines changed

5 files changed

+55
-1
lines changed

database/data/desarrolladoras.json

+4
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,9 @@
142142
{
143143
"nombre": "Hazelight Studios",
144144
"slug": "hazelight-studios"
145+
},
146+
{
147+
"nombre": "EA Sports",
148+
"slug": "ea-sports"
145149
}
146150
]

database/data/juegos.json

+14
Original file line numberDiff line numberDiff line change
@@ -328,5 +328,19 @@
328328
"descripcion": "It Takes Two es un juego de acción en 3D y narración, hablamos de un videojuego cuya trama narra cómo el matrimonio formado por Cody y May discuten sobre divorciarse, algo a lo que se opone su hija quien, de algún modo, los transforma en dos muñecos que deben cooperar para deshacer el entuerto, todo ello mientras el libro mágico Dr. Hakim les da lecciones sobre el amor.",
329329
"fecha": "2021-03-26",
330330
"slug": "it-takes-two"
331+
},
332+
{
333+
"nombre": "FIFA 22",
334+
"descripcion": "FIFA 22 es un videojuego de simulación de fútbol aún por presentar de EA Sports que llegará a las tiendas a finales del 2021 para PC y consolas. Aunque las ediciones de las consolas de la octava generación y PC son bastante continuistas, esta nueva entrega tiene como abanderada la tecnología Hypermotion, que permite lograr un comportamiento más realista de los jugadores dentro del campo y que es exclusiva de las versiones de nueva generación.",
335+
"fecha": "2021-09-26",
336+
"slug": "fifa-22",
337+
"url_imagen": "https://www.dropbox.com/s/qysxcildfb6h107/56-fifa-22.png?raw=1"
338+
},
339+
{
340+
"nombre": "Metal Gear Solid 2: Sons of Liberty",
341+
"descripcion": "Años después de los sucesos de Metal Gear Solid, en Shadow Moses, el agente Raiden tiene que infiltrarse en una planta de limpieza que ha sido atacada por un grupo terrorista dirigido por Revolver Ocelot y Solidus Snake. Para ello contará con la ayuda de Solid Snake.",
342+
"fecha": "2003-03-08",
343+
"slug": "metal-gear-solid-2-sons-of-liberty",
344+
"url_imagen": "https://www.dropbox.com/s/ojgxefu58jelgan/57-metal-gear-solid-2-sons-of-liberty.png?raw=1"
331345
}
332346
]

database/seeds/JuegableSeeder.php

+37-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public function run()
225225

226226
DB::table('juegables')->insert([
227227
'juego_id' => '36',
228-
'juegable_id' => '3',
228+
'juegable_id' => '36',
229229
'juegable_type' => 'App\Models\Desarrolladora',
230230
]);
231231

@@ -343,6 +343,18 @@ public function run()
343343
'juegable_type' => 'App\Models\Desarrolladora',
344344
]);
345345

346+
DB::table('juegables')->insert([
347+
'juego_id' => '56',
348+
'juegable_id' => '37',
349+
'juegable_type' => 'App\Models\Desarrolladora',
350+
]);
351+
352+
DB::table('juegables')->insert([
353+
'juego_id' => '57',
354+
'juegable_id' => '21',
355+
'juegable_type' => 'App\Models\Desarrolladora',
356+
]);
357+
346358
DB::table('juegables')->insert([
347359
'juego_id' => '1',
348360
'juegable_id' => '25',
@@ -1188,5 +1200,29 @@ public function run()
11881200
'juegable_id' => '50',
11891201
'juegable_type' => 'App\Models\Genero',
11901202
]);
1203+
1204+
DB::table('juegables')->insert([
1205+
'juego_id' => '56',
1206+
'juegable_id' => '19',
1207+
'juegable_type' => 'App\Models\Genero',
1208+
]);
1209+
1210+
DB::table('juegables')->insert([
1211+
'juego_id' => '57',
1212+
'juegable_id' => '2',
1213+
'juegable_type' => 'App\Models\Genero',
1214+
]);
1215+
1216+
DB::table('juegables')->insert([
1217+
'juego_id' => '57',
1218+
'juegable_id' => '5',
1219+
'juegable_type' => 'App\Models\Genero',
1220+
]);
1221+
1222+
DB::table('juegables')->insert([
1223+
'juego_id' => '57',
1224+
'juegable_id' => '69',
1225+
'juegable_type' => 'App\Models\Genero',
1226+
]);
11911227
}
11921228
}

public/media/juegos/56-fifa-22.png

98.7 KB
Loading
Loading

0 commit comments

Comments
 (0)
0