database/seeders/XpSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $xps = [
            ['xp_type' => 'Borger XP', 'base_month' => '2020/05', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Lyssky XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Kriger XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Kriger XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Kriger XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Kriger XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Kriger XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Kriger XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
            ['xp_type' => 'Troldmands XP', 'base_month' => '2020/04', 'teacher' => 'HG', 'character_id' => 1],
        ];
        foreach($xps as $xp)
        {
            Xp::create($xp);
        }
    }
public function run ( ) { $ xps = [ [ 'xp_type' => 'Borger XP' , 'base_month' => '2020/05' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Lyssky XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Kriger XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Kriger XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Kriger XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Kriger XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Kriger XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Kriger XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , [ 'xp_type' => 'Troldmands XP' , 'base_month' => '2020/04' , 'teacher' => 'HG' , 'character_id' => 1 ] , ] ; foreach ( $ xps as $ xp ) { Xp :: create ( $ xp ) ; } }
Run the database seeds.
Run the database seeds .