我正在尝试做一个自定义数据的导出,这些数据在用户霜中输入到DataTables中。我已经使用composer加载了maatwebsite excel库,并更新了autoload_classmap.php。在控制器中,我尝试使用以下命令:
Excel::create('master',function($excel) use($events){
$excel->sheet('Master List', function($sheet) use($events){
$sheet->fromArray($events);
});
})->export('xls'); 当我运行此命令时,我得到以下错误:
PHP Fatal error: Class 'UserFrosting\Excel' not found in /usr/www我已经查看了laravel示例,并尝试了它们,它们工作起来没有任何问题。但我需要这在用户霜上工作,因为应用程序已经和只错过了导出。
发布于 2016-08-23 14:48:26
我最终离开了maatwebsite/excel,去了phpoffice/phpexcel,这对我来说更快一点,我会在不久的将来尝试得到这个问题的答案。
发布于 2016-07-14 04:59:53
https://stackoverflow.com/questions/38311679
复制相似问题