单列TXT
$file = $request->file('courseware');
$path = $file->getFile();
$fileArr = file($path);
foreach($fileArr as $v){
$a = trim($v);
$a = str_replace("\r\n","",$a);
$a = str_replace("\r","",$a);
$a = str_replace("\n","",$a);
$data[] = $a;
}