Skip to content

Commit

Permalink
use correct namespaces in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoqh committed May 13, 2017
1 parent 697153b commit 7e16e00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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;
}
Expand All @@ -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([...]);
Expand All @@ -109,4 +109,4 @@ public function toFcm($notifiable)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

0 comments on commit 7e16e00

Please sign in to comment.