Skip to content

Commit 6e2ea3b

Browse files
authored
手动指明Storage命名空间
在lumen 5.6环境下,使用\Storage会提示类不存在,所以需要把整个门面引入进来
1 parent 057850d commit 6e2ea3b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/QiniuFilesystemServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php namespace zgldh\QiniuStorage;
22

3+
use Illuminate\Support\Facades\Storage;
34
use League\Flysystem\Filesystem;
45
use Illuminate\Support\ServiceProvider;
56
use zgldh\QiniuStorage\Plugins\DownloadUrl;
@@ -23,7 +24,7 @@ class QiniuFilesystemServiceProvider extends ServiceProvider
2324

2425
public function boot()
2526
{
26-
\Storage::extend(
27+
Storage::extend(
2728
'qiniu',
2829
function ($app, $config) {
2930
if (isset($config['domains'])) {

0 commit comments

Comments
 (0)