Skip to content

Commit

Permalink
feat(access): New plug-ins, file access rights
Browse files Browse the repository at this point in the history
  • Loading branch information
iiDestiny committed Jan 17, 2019
1 parent 2d5b576 commit 080d157
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/OssStorageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use Iidestiny\Flysystem\Oss\OssAdapter;
use Iidestiny\Flysystem\Oss\Plugins\FileUrl;
use Iidestiny\Flysystem\Oss\Plugins\SignUrl;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Storage;
use League\Flysystem\Filesystem;
Expand Down Expand Up @@ -40,6 +41,7 @@ public function boot()
$filesystem = new Filesystem($adapter);

$filesystem->addPlugin(new FileUrl());
$filesystem->addPlugin(new SignUrl());

return $filesystem;
});
Expand Down

0 comments on commit 080d157

Please sign in to comment.