Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 8efea61

Browse files
authored andcommitted
Merge remote-tracking branch 'upstream/master'
2 parents a0cb9e5 + ffdf00a commit 8efea61

File tree

8 files changed

+365
-275
lines changed

8 files changed

+365
-275
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Or you can add it directly in your composer.json file:
2929

3030
{
3131
"require": {
32-
"brozot/laravel-fcm": "^1.2.0"
32+
"brozot/laravel-fcm": "1.2.*"
3333
}
3434
}
3535

@@ -203,6 +203,12 @@ A topics message is a notification message, data message, or both, that you send
203203

204204
> Note: Topic names must be managed by your app and known by your server. The Laravel-FCM package or fcm doesn't provide an easy way to do that.
205205
206+
The following use statement is required for the examples below:
207+
208+
```php
209+
use LaravelFCM\Message\Topics;
210+
```
211+
206212
#### Sending a Message to a Topic
207213

208214
```php
@@ -243,9 +249,9 @@ $topic->topic('news')->andTopic(function($condition) {
243249

244250
$condition->topic('economic')->orTopic('cultural');
245251

246-
})
252+
});
247253

248-
$topicResponse = FCM::sendToTopic($topic, null, $notification, null)
254+
$topicResponse = FCM::sendToTopic($topic, null, $notification, null);
249255

250256
$topicResponse->isSuccess();
251257
$topicResponse->shouldRetry();

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"require": {
1414
"php": ">=5.5.9",
15-
"illuminate/support": ">=5.0.0",
15+
"illuminate/support": "5.*",
1616
"guzzlehttp/guzzle": "~6.0",
1717
"monolog/monolog": "^1.19"
1818
},

0 commit comments

Comments
 (0)