PHP excel Maatwebsite给我随机字符文件名

时间:2016-02-22 15:57:36

标签: php excel phpexcel

\Excel::create("test", function ($excel) use ($logs) {
    $excel->sheet('AllProjectLogHours', function ($sheet) use ($logs) {
        $sheet->loadView('template',
            array('log' => $logs));
    });
})->export('xlsx');

我使用Maatwebsite生成excel。 它返回名为d45e9cfc-ed62-4422-918a-2d3ecb980131的excel文件。我也检查了供应商目录中Maatwebsite中的创建和导出功能。 文件名变量设置正确但仍然给我随机字符文件名

有人解决或遇到过这个问题吗?

0 个答案:

没有答案