delete(); for($i = 0; $i < 20; ++$i) { $date = $this->randDate(); DB::table('tags')->insert(array( 'tag' => 'tag' . $i, 'tag_url' => 'tag' . $i, 'created_at' => $date, 'updated_at' => $date )); } } }