Example #1
0
 public function run()
 {
     DB::table('task_names')->truncate();
     $task_names = [['task_name' => 'Call'], ['task_name' => 'Appointment'], ['task_name' => 'Email']];
     foreach ($task_names as $task_name) {
         \App\TaskName::create($task_name);
     }
 }