Skip to content

Commit fe782a2

Browse files
committed
Auto-register the facade
1 parent f43f170 commit fe782a2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ If your application is not using package discovery, you will need to add the ser
1515
```sh
1616
BabDev\Twilio\Providers\TwilioProvider::class,
1717
```
18+
19+
Likewise, you will also need to register the facade in your `config/app.php` file if not using package discovery:
20+
21+
```sh
22+
'TwilioClient' => BabDev\Twilio\Facades\TwilioClient::class,
23+
```

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
"laravel": {
3535
"providers": [
3636
"BabDev\\Twilio\\Providers\\TwilioProvider"
37-
]
37+
],
38+
"aliases": {
39+
"TwilioClient": "BabDev\\Twilio\\Facades\\TwilioClient"
40+
}
3841
}
3942
}
4043
}

0 commit comments

Comments
 (0)