database/seeds/AnswerTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('answers')->truncate();
        DB::table('answers')->insert([
            [
            'answer' => "Ja",
            ],
             [
            'answer' => "Nein",
            ],
             [
            'answer' => "Weiß noch nicht",
            ],
        ]);
    }
public function run ( ) { DB :: table ( 'answers' ) -> truncate ( ) ; DB :: table ( 'answers' ) -> insert ( [ [ 'answer' => " Ja " , ] , [ 'answer' => " Nein " , ] , [ 'answer' => " Weiß noch nicht" , ] , ] ) ; }
Run the database seeds.
Run the database seeds .
//DB::statemanet('SET FOREIGN_KEY_CHECKS=0'); //$faker = Factory::create('de_DE');