Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Choose storing path #141

Open
nam-co opened this issue Nov 9, 2018 · 2 comments
Open

Choose storing path #141

nam-co opened this issue Nov 9, 2018 · 2 comments

Comments

@nam-co
Copy link

nam-co commented Nov 9, 2018

Thank you fo the script, is very useful, I was wondering on make() how do I choose the location of the future .zip?

For example if I want it in public/zip/file.zip (public)
or storage/app/zip/file.zip (storage)
on
$zipper->make('zip/file.zip')->add('/somewhere'.$files)->close();

and the same goes from where I choose the files?

Appreciate any help and thanks

@IcaroRios
Copy link

make() is where the zip will be created.
add() is the files or folder that will be compressed.

@koraykupe
Copy link

Does it always have to be in the public folder? Because I can not set the folder to 'storage' folder of Laravel.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants