ThinkPHP5中遇到Class 'PhpOffice\PhpSpreadsheet\Spreadsheet' not found这个问题

当你要使用excel导入导出的时候需要使用phpspreadsheet那么你就要composer, 

 composer require phpoffice/phpspreadsheet

其实当你composer下来的PhpSpreadsheet千万千万就不要移动了,这样就会导致你的路径啥的都有问题

你composer下来的文件就不要移动也不要复制,否则就会出现Class 'PhpOffice\PhpSpreadsheet\Spreadsheet' not found这个问题
 

红色圈出来的都不要移动和复制

发布了20 篇原创文章 · 获赞 21 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/jachinFang/article/details/105274013