From 7b2b525cc9511b4a55d45c0b395ef94de6ad19b0 Mon Sep 17 00:00:00 2001 From: Lee Willis Date: Thu, 15 Feb 2018 09:54:28 +0000 Subject: [PATCH] Enable provider autodiscovery on Laravel 5.5+ --- README.md | 4 +++- composer.json | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 917d5c2..4e73e8f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ 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' => [ // ... @@ -25,6 +25,8 @@ Register the service provider in app.php ] ``` +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 diff --git a/composer.json b/composer.json index d7c2452..f1372b6 100644 --- a/composer.json +++ b/composer.json @@ -22,6 +22,11 @@ "extra": { "branch-alias": { "dev-master": "1.0-dev" + }, + "laravel": { + "providers": [ + "Superbalist\\LaravelGoogleCloudStorage\\GoogleCloudStorageServiceProvider" + ] } }, "require-dev": {