Thursday, March 9, 2017

excel corrupt on laravel 5.4


i upgraded my project from 5.1 to 5.4 and now whenver i try to export data i got a corrupt xls file, even though i am using the same code as laravel 5.1, when i try to open the file i get this error

the file format and extension of 'client.xls' don't match. the file could be corrupted or unsafe, Unless you trust its source , don't open it

I read that i should check for whitespaces and anomalies in the code, but it's the same code no spaces.
i am using Maatwebsite/Laravel-Excel
Thank you



via Ayoub Idelhoussain

Advertisement