Created
May 29, 2015 22:03
-
-
Save jeremeamia/c337949d9eb92bf5ea54 to your computer and use it in GitHub Desktop.
Revisions
-
jeremeamia created this gist
May 29, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ <?php /** * Create an instance of the Amazon S3 driver. * * @param array $config * @return \Illuminate\Contracts\Filesystem\Cloud */ public function createS3Driver(array $config) { $config += [ 'credentials' => array_only($config, ['key', 'secret']), 'version' => 'latest', ]; unset($config['key'], $config['secret']); return $this->adapt( new Flysystem(new S3Adapter(new S3Client($config), $config['bucket'])) ); }