You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,19 +57,19 @@ You need to put it to `config/services.php` configuration file. You may copy the
57
57
58
58
### Routing Pushbullet notifications
59
59
In order to send notifications to Pushbullet you need to specify recipient for each notifiable entity. There are currently 2 options: pushbullet email or device id of recipient.
60
-
To provide library with correct notification recipient you need to define `routeNotificationForTelegram` method on notifiable entity.
60
+
To provide library with correct notification recipient you need to define `routeNotificationForPushbullet` method on notifiable entity.
61
61
62
62
#### Sending notification to email:
63
63
```php
64
-
public function routeNotificationForTelegram()
64
+
public function routeNotificationForPushbullet()
65
65
{
66
66
return new \NotificationChannels\Pushbullet\Targets\Email($this->email);
67
67
}
68
68
```
69
69
70
70
#### Sending notification to device id:
71
71
```php
72
-
public function routeNotificationForTelegram()
72
+
public function routeNotificationForPushbullet()
73
73
{
74
74
return new \NotificationChannels\Pushbullet\Targets\Device($this->pushbullet_device_id);
75
75
}
@@ -78,7 +78,7 @@ public function routeNotificationForTelegram()
78
78
#### Third option:
79
79
Although, this option is not recommended, you might just return a string (email or device id) and library will do its best to determine if it email or device id.
80
80
```php
81
-
public function routeNotificationForTelegram()
81
+
public function routeNotificationForPushbullet()
82
82
{
83
83
return $this->email;
84
84
}
@@ -91,7 +91,7 @@ On notification entity just add `\NotificationChannels\Pushbullet\PushbulletChan
91
91
In your notification class you also should define `toPushbullet` method which will return instance of `\NotificationChannels\Pushbullet\PushbulletMessage`.
92
92
```php
93
93
/**
94
-
* Get the telegram representation of the notification.
94
+
* Get the pushbullet representation of the notification.
0 commit comments