fileName = "test.xls";
$filePath = "../storage/app/";
Excel::load($filePath.$fileName, function ($reader) {
//获取excel的第1张表
$reader = $reader->getSheet(0);
//获取表中的数据
$results = $reader->toArray();
dd($results);
});
fileName = "test.xls";
$filePath = "../storage/app/";
Excel::load($filePath.$fileName, function ($reader) {
//获取excel的第1张表
$reader = $reader->getSheet(0);
//获取表中的数据
$results = $reader->toArray();
dd($results);
});