Skip to content

Commit

Permalink
Merge pull request #28 from houxiaobei/master
Browse files Browse the repository at this point in the history
add alias
  • Loading branch information
freyo committed Aug 29, 2017
2 parents e21a2ff + 0c1f5ee commit 5d476de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ bool $flysystem->setVisibility('file.md', 'public'); //or 'private'

```php
$app->singleton('filesystem', function ($app) {
$app->alias('filesystem',Illuminate\Contracts\Filesystem\Factory::class);
return $app->loadComponent(
'filesystems',
Illuminate\Filesystem\FilesystemServiceProvider::class,
Expand Down

0 comments on commit 5d476de

Please sign in to comment.