vendredi 25 mars 2016

How to store certain sheet or how to delete all sheets except certain?

This is what i'm trying to do

Excel::load($file->getRealPath())
->getSheet(0)
->setFilename(Auth::user()->id_user)
->store('xlsx', storage_path('import'));

Instead of ->getSheet(index) I also trying ->selectSheetsByIndex(index)

Always there is an error

Call to undefined method PHPExcel_Worksheet::setFilename()

What I'm doing wrong? Documentation on the official Maatwebsite is incomplete and there are no examples of popular use cases.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire