Skip to content

Commit dbddbcb

Browse files
Add installation instruction for Lumen
1 parent 16744f5 commit dbddbcb

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

readme.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ You can pull the package via composer :
1010
$ composer require kawankoding/laravel-fcm "^0.2.0"
1111
```
1212

13-
Next, You must register the service provider :
13+
#### Laravel
14+
15+
You must register the service provider :
1416

1517
```php
1618
// config/app.php
@@ -53,6 +55,24 @@ return [
5355
];
5456
```
5557

58+
#### Lumen
59+
60+
Add the following service provider to the `bootstrap/app.php` file
61+
```php
62+
$app->register(Kawankoding\Fcm\FcmServiceProvider::class);
63+
```
64+
65+
Also copy the [laravel-fcm.php](https://github.com/kawankoding/laravel-fcm/blob/master/resources/config/laravel-fcm.php) config file to `config/laravel-fcm.php`
66+
67+
68+
Add the configuration to the `bootstrap/app.php` file
69+
*Important:* this needs to be before the registration of the service provider
70+
```php
71+
$app->configure('laravel-fcm');
72+
...
73+
$app->register(Kawankoding\Fcm\FcmServiceProvider::class);
74+
```
75+
5676
Set your FCM Server Key in `.env` file :
5777

5878
```

0 commit comments

Comments
 (0)