1 Likeword::offset(16854)->chunk(100, function ($word_list) { 2 foreach ($word_list as $word) { 3 $new = str_replace(array("\r\n"), "", $word->likeword); 4 $word->update(['likeword' => $new]); 5 } 6 });
1 Likeword::offset(16854)->chunk(100, function ($word_list) { 2 foreach ($word_list as $word) { 3 $new = str_replace(array("\r\n"), "", $word->likeword); 4 $word->update(['likeword' => $new]); 5 } 6 });