database/seeds/TasksSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        \App\Task::truncate();
        factory(\App\Task::class, 10)->create();
    }
public function run ( ) { \ App \ Task :: truncate ( ) ; factory ( \ App \ Task :: class , 10 ) -> create ( ) ; }
Run the database seeds.
Run the database seeds .
//        $faker = \Faker\Factory::create('zh_TW'); //        foreach(range(1,20) as $number) { //            \App\Task::create([ //                'name' => $faker->name(), //            ]); //        }