【发布时间】:2018-06-05 09:42:01
【问题描述】:
public function uploadNotaCorte(Request $request, EstadoRepository $estadoRepository)
{
$error = array();
$path = $request->file('file')->getRealPath();
$notasCorte = Excel::load($path, function($reader) {
})->get();
$chunk = $notasCorte->chunk(100);
foreach ($notasCorte as $key => $notaCorte) {
//RULES
}return $error;
}
** 大家好,我是编程新手,我很难实现块方法,所以上面的 dodigo 通常适用于小文件加上较大的错误文件,因为它的大小。 我需要上传一个包含 120,000 条记录的文件,并且我正在尝试为此使用块,我不知道我会做错什么已经查看了更多非常简单的文档并且我无法解决问题任何人都可以帮助我吗? ?**
【问题讨论】:
标签: php excel laravel import upload