Skip to content

Commit

Permalink
add plugin putRemoteFile to upload remote file to storage
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobcyl authored Nov 9, 2016
1 parent 90e35e1 commit f78b6f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AliOssServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Jacobcyl\AliOSS;

use Jacobcyl\AliOSS\Plugins\PutFile;
use Jacobcyl\AliOSS\Plugins\PutRemoteFile;
use Storage;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\ServiceProvider;
Expand Down Expand Up @@ -43,6 +44,7 @@ public function boot()
$filesystem = new Filesystem($adapter);

$filesystem->addPlugin(new PutFile());
$filesystem->addPlugin(new PutRemoteFile());
//$filesystem->addPlugin(new CallBack());
return $filesystem;
});
Expand Down

0 comments on commit f78b6f4

Please sign in to comment.