From 9885ead164464475ef2441c92d4bde7ad888ef3b Mon Sep 17 00:00:00 2001 From: Sam Doidge Date: Fri, 22 Sep 2017 22:43:53 +0100 Subject: [PATCH] Add facade notice to readme for 5.4 and below https://github.com/publiux/laravelcdn/issues/23 --- readme.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 11fe493..284f185 100644 --- a/readme.md +++ b/readme.md @@ -44,7 +44,7 @@ composer require "publiux/laravelcdn:~2.0" *If you are using Laravel 5.4 or below, you need to register the service provider:* -Laravel 5.4 and below: Add the service provider to `config/app.php`: +Laravel 5.4 and below: Add the service provider and facade to `config/app.php`: ```php 'providers' => array( @@ -52,6 +52,14 @@ Laravel 5.4 and below: Add the service provider to `config/app.php`: Publiux\laravelcdn\CdnServiceProvider::class, ), ``` + +```php +'aliases' => array( + //... + 'Cdn' => Publiux\laravelcdn\Facades\CdnFacadeAccessor::class +), +``` + *If you are using Laravel 5.5, there is no need to register the service provider as this package is automatically discovered.* Publish the package config file: