stechstudio / laravel-zipstream

Easily create Zip files on-the-fly and provide a streaming download
MIT License
413 stars 58 forks source link

Unable to use Zip #98

Closed lucdaalmeijer closed 1 year ago

lucdaalmeijer commented 1 year ago

Hi Everybody 👋

I've installed your package but when i add use Zip; at the top of my file is says: Undefined class 'Zip' .

Am i doing something wrong? I tried using ZipStreamFacade directly but then it doesn't allow me to use the create function. I know that is should be creating the alias usig composer but it looks like it's not working.

I hope somebody can help me.

lucdaalmeijer commented 1 year ago

Ok it is working, it is confusing that my IDE (phpstorm) is saying that it doesn't exist but it still returned a ZipStream, sorry for the inconvenience

As a side note, could it be added to the documentation that this could be the case?