Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Enable provider autodiscovery on Laravel 5.5+ #31

Merged
merged 1 commit into from
Dec 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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