File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -57,29 +57,29 @@ return [
57
57
If You want to send a FCM with just notification parameter, this is an example of usage sending a FCM with only data parameter :
58
58
``` php
59
59
fcm()
60
- ->to($recipients)
60
+ ->to($recipients) // $recipients must an array
61
61
->data([
62
62
'title' => 'Test FCM',
63
63
'body' => 'This is a test of FCM',
64
64
])
65
- ->push ();
65
+ ->send ();
66
66
```
67
67
68
68
If You want to send a FCM with just notification parameter,this is an example of usage sending a FCM with only notification parameter :
69
69
``` php
70
70
fcm()
71
- ->to($recipients)
71
+ ->to($recipients) // $recipients must an array
72
72
->notification([
73
73
'title' => 'Test FCM',
74
74
'body' => 'This is a test of FCM',
75
75
])
76
- ->push ();
76
+ ->send ();
77
77
```
78
78
79
79
If You want to send a FCM with both data & notification parameter, this is an example of usage sending a FCM with both data & notification parameter :
80
80
``` php
81
81
fcm()
82
- ->to($recipients)
82
+ ->to($recipients) // $recipients must an array
83
83
->data([
84
84
'title' => 'Test FCM',
85
85
'body' => 'This is a test of FCM',
88
88
'title' => 'Test FCM',
89
89
'body' => 'This is a test of FCM',
90
90
])
91
- ->push ();
91
+ ->send ();
92
92
```
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function notification(array $notification = [])
33
33
return $ this ;
34
34
}
35
35
36
- public function push ()
36
+ public function send ()
37
37
{
38
38
$ fcmEndpoint = 'https://fcm.googleapis.com/fcm/send ' ;
39
39
You can’t perform that action at this time.
0 commit comments