From 9330932738781292a219ed73fdd49ca4da1c4221 Mon Sep 17 00:00:00 2001 From: Jan Stolle Date: Wed, 20 Jun 2018 10:42:46 +0200 Subject: [PATCH] Add Laravel Auto Discovery --- README.md | 12 ++++++++++-- composer.json | 8 ++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ee55dc6..cd0756a 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,15 @@ Or manualy in composer.json: } ``` -## Register Service Provider +## Setup + +### Laravel >=5.5 + +This package supports auto discovery, so no configuration is required. + +### Laravel <5.5 + +#### Register Service Provider */configs/app.php* @@ -52,7 +60,7 @@ Or manualy in composer.json: ``` -## Enable Facade +#### Enable Facade */configs/app.php* diff --git a/composer.json b/composer.json index c8660fe..963ef05 100644 --- a/composer.json +++ b/composer.json @@ -30,6 +30,14 @@ "extra": { "branch-alias": { "dev-master": "1.0-dev" + }, + "laravel": { + "providers": [ + "Kozz\\Laravel\\Providers\\Guzzle" + ], + "aliases": { + "Guzzle": "Kozz\\Laravel\\Facades\\Guzzle" + } } } }