I'm using laravel-excel
library to read excel files.
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);
});
this file http://localhost:8000/assets/panel/excel/test123.xls
exist but I got this error:
Could not open C:\xampp\htdocs\tahrircenter\http://localhost:8000/assets/panel/excel/test123.xls for reading! File does not exist.
I know the meaning of the error, but how can I use my address instead of directory address in this library?