Zipper icon indicating copy to clipboard operation
Zipper copied to clipboard

Can I use it with Laravel Filesystem?

Open vedmant opened this issue 7 years ago • 1 comments

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?

vedmant avatar Jun 13 '18 19:06 vedmant

Try this approach for creating zip and extracting

$path = \Storage::disk('user_data')->path('file.zip');
$zip = \Zipper::make($path)...

It works for me

jlstandout avatar May 10 '19 14:05 jlstandout