MAC OS Laravel Excel不起作用

最近我改成了Mac。 在此之前,我在Windows上工作。 这个Laravel Excel没有问题。 即使我也可以下载(导出)excel表格。 但是在Mac上,当我尝试导出excel的时候就这么说了

http:// localhost / my_app / public / export中的网页可能暂时closures,或者可能永久移动到新的url。

在位于/ storage / logs的laravel日志文件中显示错误为

未能创build临时文件:/Applications/XAMPP/xamppfiles/htdocs/my_app/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007.php:398中没有这样的文件或目录

所以我该怎么做。 这个项目是从我的私人存储库克隆到bitbuckect中,并做了一个composer php更新。 有没有什么问题!

这是我的代码:

Excel::create($file_to_date, function($excel) use($result) { $excel->sheet('Sheet1', function($sheet) use($result) { $header = array( //assign excel sheet cell headers array('First Name', 'Last Name', 'Email') ); $sheet->appendRow(array_values($header[0])); // column namesarray_values($data) $sheet->row($sheet->getHighestRow(), function ($row) //column names bold { $row->setFontWeight('bold'); }); foreach ($result as $r)//set values to sheet { $sheet->appendRow($r); } }); })->export('xlsx'); 

我们可以从这里说点什么吗? ??

在您的laravel项目的目录中,将文件夹存储的权限更改为755。