Cyber-Duck / laravel-excel

This package provides a way to export an Eloquent collection as an excel file and to import a Excel file as an Eloquent collection.
https://www.cyber-duck.co.uk
MIT License
74 stars 27 forks source link

[solved] excel import not working #16

Closed MohammedAlewi closed 4 years ago

MohammedAlewi commented 4 years ago

Hi there! the libary was working well during development(locally) but after deployment only the exporter is working correctly.... the error occures when it try to get the collection ...... $excel = Importer::make('Excel'); $excel->load($path); $collection = $excel->getCollection(); <--- here

and from the server it is returning ..... Class 'XMLReader' not found "exception": "Symfony\Component\ErrorHandler\Error\FatalError",

I am new to laravel and any suggestion will do, thanks in advance :)