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

Can I use it with Laravel Filesystem? #130

Open
vedmant opened this issue Jun 13, 2018 · 1 comment
Open

Can I use it with Laravel Filesystem? #130

vedmant opened this issue Jun 13, 2018 · 1 comment

Comments

@vedmant
Copy link

vedmant commented Jun 13, 2018

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?

@jlstandout
Copy link

Try this approach for creating zip and extracting

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

It works for me

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

2 participants