mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
fix: fix typo in skins database
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Champion;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ChampionSkinSeeder extends Seeder
|
||||
@@ -11,6 +12,12 @@ class ChampionSkinSeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
//
|
||||
$championDataUrl = "http://cdn.merakianalytics.com/riot/lol/resources/latest/en-US/champions.json";
|
||||
$championData = json_decode(file_get_contents($championDataUrl), true);
|
||||
|
||||
foreach ($championData as $champion) {
|
||||
$championId = $champion['id'];
|
||||
$championExists = Champion::where('champion_id', $championId)->first();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user