Skip to content

Commit

Permalink
Add facade notice to readme for 5.4 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoidge authored Sep 22, 2017
1 parent b415720 commit 9885ead
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,22 @@ 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(
//...
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:
Expand Down

0 comments on commit 9885ead

Please sign in to comment.