From 7e16e00f2b79a3cab96754108942aebd8b98d7c5 Mon Sep 17 00:00:00 2001 From: Nico Date: Sun, 14 May 2017 01:35:40 +0200 Subject: [PATCH] use correct namespaces in readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5b569c8..f25d47d 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Add the method `public function toFcm($notifiable)` to your notification, and re ```php public function toFcm($notifiable) { - $message = new Benwilkins\FcmMessage(); + $message = new Benwilkins\FCM\FcmMessage(); $message->content([ 'title' => 'Foo', 'body' => 'Bar', @@ -73,7 +73,7 @@ public function toFcm($notifiable) 'click_action' => '' // Optional ])->data([ 'param1' => 'baz' // Optional - ])->priority(Benwilkins\FcmMessage::PRIORITY_HIGH); // Optional - Default is 'normal'. + ])->priority(Benwilkins\FCM\FcmMessage::PRIORITY_HIGH); // Optional - Default is 'normal'. return $message; } @@ -98,7 +98,7 @@ When sending to a topic, you may define so within the `toFcm` method in the noti ```php public function toFcm($notifiable) { - $message = new Benwilkins\FcmMessage(); + $message = new Benwilkins\FCM\FcmMessage(); $message->to('the-topic', $recipientIsTopic = true) ->content([...]) ->data([...]); @@ -109,4 +109,4 @@ public function toFcm($notifiable) ## License -The MIT License (MIT). Please see [License File](LICENSE.md) for more information. \ No newline at end of file +The MIT License (MIT). Please see [License File](LICENSE.md) for more information.