Excel::load($file->getRealPath())->get();
这仅返回项目,不返回标题。
您可以通过以下方式获取文件标题:
$file = Excel::load($file->getRealPath())
$file->getTitle();
您还可以在各个工作表上调用getTitle():
foreach ($file->get() as $sheet) {
echo $sheet->getTitle();
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句