database/seeders/XpTypeSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $types = [
            ['xp_type' => 'Borger XP'],
            ['xp_type' => 'Jæger XP'],
            ['xp_type' => 'Lyssky XP'],
            ['xp_type' => 'Kriger XP'],
            ['xp_type' => 'Præste XP'],
            ['xp_type' => 'Troldmands XP'],
            ['xp_type' => 'Baby XP'],
        ];
        foreach($types as $type)
        {
            XpType::create($type);
        }
    }
public function run ( ) { $ types = [ [ 'xp_type' => 'Borger XP' ] , [ 'xp_type' => 'Jæger XP'] , [ 'xp_type' => 'Lyssky XP' ] , [ 'xp_type' => 'Kriger XP' ] , [ 'xp_type' => 'Præste XP'] , [ 'xp_type' => 'Troldmands XP' ] , [ 'xp_type' => 'Baby XP' ] , ] ; foreach ( $ types as $ type ) { XpType :: create ( $ type ) ; } }
Run the database seeds.
Run the database seeds .
//