mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
- Added a new function `getChampionImage` to fetch champion images based on ID and type. - Created a new model `ChampionImage` to store champion image details in the database. - Implemented seeding of champion images using `ChampionImageSeeder`. - Updated usage of champion images in existing methods.
32 lines
849 B
PHP
32 lines
849 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\Cache;
|
|
use Illuminate\Support\Facades\Log;
|
|
use Illuminate\Support\Facades\Artisan;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Seed the application's database.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$this->call(ChampionSeeder::class);
|
|
$this->call(ChampionSkinSeeder::class);
|
|
$this->call(SkinChromaSeeder::class);
|
|
$this->call(ChampionRolesSeeder::class);
|
|
$this->call(SummonerIconSeeder::class);
|
|
$this->call(SummonerEmoteSeeder::class);
|
|
$this->call(ChampionImageSeeder::class);
|
|
|
|
Cache::flush();
|
|
Artisan::call('cloudflare:purge');
|
|
|
|
Log::info('Seeding complete at '.date('Y-m-d H:i:s'));
|
|
}
|
|
}
|