Archived
1
0
Fork 0

database/seeders: Spit RaidSeeder into TBCRaidSeeder and WrathRaidSeeder

This commit is contained in:
Henrik Hautakoski 2023-01-29 17:18:22 +01:00
parent d6e4abd62c
commit 8811ffc670
4 changed files with 48 additions and 29 deletions

View file

@ -0,0 +1,23 @@
<?php
namespace Database\Seeders;
use App\Models\Raid;
use Illuminate\Database\Seeder;
class TBCRaidSeeder extends Seeder
{
/**
* Seed the database with TBC raids.
*
* @return void
*/
public function run()
{
$raids = [ 'Karazhan', 'Grul\'s Lair', 'Magtheridon', 'SSC', 'TK' ];
foreach($raids as $name) {
Raid::insert(['name' => $name ]);
}
}
}