Skip to content

Commit

Permalink
Enable provider autodiscovery on Laravel 5.5+ (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
leewillis77 authored and nicja committed Dec 12, 2018
1 parent 570560d commit 4d6430f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ This package is a wrapper bridging [flysystem-google-storage](https://github.com
composer require superbalist/laravel-google-cloud-storage
```

Register the service provider in app.php
If you are on Laravel 5.4 or earlier, then register the service provider in app.php
```php
'providers' => [
// ...
Superbalist\LaravelGoogleCloudStorage\GoogleCloudStorageServiceProvider::class,
]
```

If you are on Laravel 5.5 or higher, composer will have registered the provider automatically for you.

Add a new disk to your `filesystems.php` config

```php
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
},
"laravel": {
"providers": [
"Superbalist\\LaravelGoogleCloudStorage\\GoogleCloudStorageServiceProvider"
]
}
},
"require-dev": {
Expand Down

0 comments on commit 4d6430f

Please sign in to comment.