In thinkphp5, we encountered the problem of class’ phpoffice / phpspredsheet / spreadsheet ‘not found

 
When you’re using Excel import and export and you’re using PHPSpreadsheet you’re going to use Composer,

 composer require phpoffice/phpspreadsheet

In fact, when you compose your PHPSpreadsheet, you should never move it. This will cause problems with your paths and everything
Composer down you don’t move and don’t copy the file, can appear otherwise Class ‘PhpOffice \ PhpSpreadsheet \ Spreadsheet’ not found this problem

Anything circled in red should not be moved or copied

Read More: