Skip to content

Commit e7d55ac

Browse files
committed
update readme.md
1 parent 07f901c commit e7d55ac

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

readme.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -122,30 +122,3 @@ fcm()
122122
])
123123
->send();
124124
```
125-
126-
### Notes
127-
128-
## Sending different payloads
129-
130-
This packages uses a singleton pattern for the `Fcm` facade and `fcm()` helper.
131-
If you want to send different payloads to Firebase in the same request you have to use use the `Kawankoding\Fcm\Fcm` class directly:
132-
133-
```php
134-
use Kawankoding\Fcm\Fcm;
135-
136-
$fcm1 = new Fcm;
137-
$fcm1->to($recipients)
138-
->data([
139-
'title' => 'Test FCM 1',
140-
'body' => 'This is a test of FCM 1',
141-
])
142-
->send();
143-
144-
$fcm2 = new Fcm;
145-
$fcm2->to($recipients)
146-
->notification([
147-
'title' => 'Test FCM 2',
148-
'body' => 'This is a test of FCM 2',
149-
])
150-
->send();
151-
```

0 commit comments

Comments
 (0)