There was an error while loading. Please reload this page.
1 parent 45e899b commit 210f3ecCopy full SHA for 210f3ec
src/QiniuStorageServiceProvider.php
@@ -10,6 +10,7 @@
10
namespace Overtrue\LaravelFilesystem\Qiniu;
11
12
use Illuminate\Support\ServiceProvider;
13
+use League\Flysystem\Config;
14
use League\Flysystem\Filesystem;
15
use Overtrue\Flysystem\Qiniu\Plugins\FetchFile;
16
use Overtrue\Flysystem\Qiniu\Plugins\FileUrl;
@@ -31,7 +32,7 @@ public function boot()
31
32
$config['bucket'], $config['domain']
33
);
34
- $flysystem = new Filesystem($adapter);
35
+ $flysystem = new Filesystem($adapter, new Config(['disable_asserts' => true]));
36
37
$flysystem->addPlugin(new FetchFile());
38
$flysystem->addPlugin(new UploadToken());
0 commit comments