File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,25 @@ composer require dreamonkey/laravel-onesignal-rest-api
1414```
1515
1616## Laravel Users:
17+ From Laravel 5.5 onwards, it's possible to take advantage of auto-discovery of the service provider.
18+
19+ For Laravel versions before 5.5, you must register the service provider in your config/app.php
20+
1721Update ` config/app.php ` by adding the following entries.
1822``` php
1923'providers' => [
20- // ...
21- Dreamonkey\OneSignal\OneSignalServiceProvider::class,
24+ // ...
25+ Dreamonkey\OneSignal\OneSignalServiceProvider::class,
2226];
2327
2428'aliases' => [
2529 // ...
2630 'OneSignal' => Dreamonkey\OneSignal\Facades\OneSignal::class,
27- ];
31+ ];
2832```
2933
3034## Lumen Users:
31- update ` bootstrap/app.php ` , adding the following entry
35+ Update ` bootstrap/app.php ` , adding the following entry
3236``` php
3337$app->register( \Dreamonkey\OneSignal\OneSignalServiceProvider::class );
3438class_alias( 'Dreamonkey\OneSignal\OneSignalFacade', 'OneSignal' );
Original file line number Diff line number Diff line change 1717 "Dreamonkey\\ OneSignal\\ " : " src/"
1818 }
1919 },
20+ "extra" : {
21+ "laravel" : {
22+ "providers" : [
23+ " Dreamonkey\\ OneSignal\\ OneSignalServiceProvider"
24+ ],
25+ "aliases" : {
26+ "OneSignal" : " Dreamonkey\\ OneSignal\\ Facades\\ OneSignal"
27+ }
28+ }
29+ },
2030 "license" : " MIT" ,
2131 "authors" : [
2232 {
You can’t perform that action at this time.
0 commit comments