Skip to content

Commit fdc8399

Browse files
authored
Merge pull request #25 from erlangp/patch-6
Update readme.md
2 parents 826b62f + d75f243 commit fdc8399

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

readme.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,23 @@ This is the contents of the published file :
4343
```php
4444
return [
4545

46-
/*
47-
* Your Fcm Server Key
48-
* Change to yours
49-
*/
46+
/**
47+
* Set your FCM Server Key
48+
* Change to yours
49+
*/
5050

51-
'server_key' => '',
51+
'server_key' => env('FCM_SERVER_KEY', ''),
5252

5353
];
5454
```
5555

56+
Set your FCM Server Key in `.env` file :
57+
```
58+
APP_NAME="Laravel"
59+
# ...
60+
FCM_SERVER_KEY=putYourKeyHere
61+
```
62+
5663
### Usage
5764

5865
If You want to send a FCM with just notification parameter, this is an example of usage sending a FCM with only data parameter :

0 commit comments

Comments
 (0)