Skip to content

Commit 43a6538

Browse files
authored
Merge pull request #24 from samdoidge/facade-docs-54
Add facade notice to readme for 5.4 and below
2 parents b415720 + 9885ead commit 43a6538

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

readme.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,22 @@ composer require "publiux/laravelcdn:~2.0"
4444

4545
*If you are using Laravel 5.4 or below, you need to register the service provider:*
4646

47-
Laravel 5.4 and below: Add the service provider to `config/app.php`:
47+
Laravel 5.4 and below: Add the service provider and facade to `config/app.php`:
4848

4949
```php
5050
'providers' => array(
5151
//...
5252
Publiux\laravelcdn\CdnServiceProvider::class,
5353
),
5454
```
55+
56+
```php
57+
'aliases' => array(
58+
//...
59+
'Cdn' => Publiux\laravelcdn\Facades\CdnFacadeAccessor::class
60+
),
61+
```
62+
5563
*If you are using Laravel 5.5, there is no need to register the service provider as this package is automatically discovered.*
5664

5765
Publish the package config file:

0 commit comments

Comments
 (0)