File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -57,29 +57,29 @@ return [
5757If You want to send a FCM with just notification parameter, this is an example of usage sending a FCM with only data parameter :
5858``` php
5959fcm()
60- ->to($recipients)
60+ ->to($recipients) // $recipients must an array
6161 ->data([
6262 'title' => 'Test FCM',
6363 'body' => 'This is a test of FCM',
6464 ])
65- ->push ();
65+ ->send ();
6666```
6767
6868If You want to send a FCM with just notification parameter,this is an example of usage sending a FCM with only notification parameter :
6969``` php
7070fcm()
71- ->to($recipients)
71+ ->to($recipients) // $recipients must an array
7272 ->notification([
7373 'title' => 'Test FCM',
7474 'body' => 'This is a test of FCM',
7575 ])
76- ->push ();
76+ ->send ();
7777```
7878
7979If 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 :
8080``` php
8181fcm()
82- ->to($recipients)
82+ ->to($recipients) // $recipients must an array
8383 ->data([
8484 'title' => 'Test FCM',
8585 'body' => 'This is a test of FCM',
8888 'title' => 'Test FCM',
8989 'body' => 'This is a test of FCM',
9090 ])
91- ->push ();
91+ ->send ();
9292```
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function notification(array $notification = [])
3333 return $ this ;
3434 }
3535
36- public function push ()
36+ public function send ()
3737 {
3838 $ fcmEndpoint = 'https://fcm.googleapis.com/fcm/send ' ;
3939
You can’t perform that action at this time.
0 commit comments