database/seeders/CharacterSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $characters = [
            ['user_id' => 1, 'name' => 'Hansi Gynter', 'start_time' => Date('Y-m-d'), 'religion' => 'Sigmar', 'culture' => 'Kejserriget', 'race' =>'Menneske', 'category' => 'Akedemiker'],
        ];
        foreach($characters as $char)
        {
            Character::create($char);
        }
    }
public function run ( ) { $ characters = [ [ 'user_id' => 1 , 'name' => 'Hansi Gynter' , 'start_time' => Date ( 'Y-m-d' ) , 'religion' => 'Sigmar' , 'culture' => 'Kejserriget' , 'race' => 'Menneske' , 'category' => 'Akedemiker' ] , ] ; foreach ( $ characters as $ char ) { Character :: create ( $ char ) ; } }
Run the database seeds.
Run the database seeds .