Zipper
Zipper copied to clipboard
Can I use it with Laravel Filesystem?
HI, I wanted to extract zip to a Laravel Filesystem disk, how can I do this? For example I have a local disk defined like this:
'public' => [
'driver' => 'local',
'root' => public_path(),
'url' => env('APP_URL'),
'visibility' => 'public',
],
I want to specify a disk when I extract files, but it looks like Zipped doesn't support Laravel Filesystem?
Try this approach for creating zip and extracting
$path = \Storage::disk('user_data')->path('file.zip');
$zip = \Zipper::make($path)...
It works for me