Php laravel excel从URL下载并解析文件
我正在使用版本2,希望从给定URL下载excel文件。Php laravel excel从URL下载并解析文件,php,laravel,Php,Laravel,我正在使用版本2,希望从给定URL下载excel文件。 在版本3中添加了函数Excel::download。有没有办法在版本2中仍然下载excel文件?可能使用PHP本身的file\u get\u contents()函数。来自Maatwebsite/Excel文档: Excel::create('Filename', function($excel) { })->export('xls'); // or ->download('xls'); 你已经有了
在版本3中添加了函数
Excel::download
。有没有办法在版本2中仍然下载excel文件?可能使用PHP本身的file\u get\u contents()
函数。来自Maatwebsite/Excel文档:
Excel::create('Filename', function($excel) {
})->export('xls');
// or
->download('xls');
你已经有了主意。你试过了吗?结果如何?给我们看一些代码。