Skip to content

Commit

Permalink
Add installation instruction for Lumen
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyandriyan committed May 27, 2020
1 parent 16744f5 commit dbddbcb
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ You can pull the package via composer :
$ composer require kawankoding/laravel-fcm "^0.2.0"
```

Next, You must register the service provider :
#### Laravel

You must register the service provider :

```php
// config/app.php
Expand Down Expand Up @@ -53,6 +55,24 @@ return [
];
```

#### Lumen

Add the following service provider to the `bootstrap/app.php` file
```php
$app->register(Kawankoding\Fcm\FcmServiceProvider::class);
```

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`


Add the configuration to the `bootstrap/app.php` file
*Important:* this needs to be before the registration of the service provider
```php
$app->configure('laravel-fcm');
...
$app->register(Kawankoding\Fcm\FcmServiceProvider::class);
```

Set your FCM Server Key in `.env` file :

```
Expand Down

0 comments on commit dbddbcb

Please sign in to comment.