Skip to content

Commit e060580

Browse files
committed
Fixed #31
1 parent 5d17256 commit e060580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/QiniuStorageServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Overtrue\LaravelFilesystem\Qiniu;
44

5+
use Illuminate\Filesystem\FilesystemAdapter;
56
use Illuminate\Support\ServiceProvider;
6-
use League\Flysystem\Config;
77
use League\Flysystem\Filesystem;
88
use Overtrue\Flysystem\Qiniu\QiniuAdapter;
99

@@ -19,7 +19,7 @@ public function boot()
1919
$config['domain']
2020
);
2121

22-
return new Filesystem($adapter, new Config(['disable_asserts' => true]));
22+
return new FilesystemAdapter(new Filesystem($adapter), $adapter);
2323
});
2424
}
2525
}

0 commit comments

Comments
 (0)