我正在使用laravel-excel
库来读取 excel 文件。
http://www.maatwebsite.nl/laravel-excel/docs/import
//http://localhost:8000/assets/panel/excel/test123.xls
$address = URL::to('/assets/panel/excel/').'/test123.xls';
// dd($address);
Excel::load($address, function($reader) {
$results = $reader->get();
dd($results);
});
此文件http://localhost:8000/assets/panel/excel/test123.xls
存在,但我收到此错误:
Could not open C:\xampp\htdocs\tahrircenter\http://localhost:8000/assets/panel/excel/test123.xls for reading! File does not exist.
我知道错误的含义,但是如何在这个库中使用我的地址而不是目录地址?