Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,9 @@ however you can change this behaviour by including a `routeNotificationFor()` in
I.e. if you are pushing notification on ``User`` model, you can go to `App\User` class and implement method:

```
public function routeNotificationFor($channel)
public function routeNotificationForPusherPushNotifications($notification)
{
if($channel === 'PusherPushNotifications'){
return 'your.custom.interest.string';
}

$class = str_replace('\\', '.', get_class($this));

return $class.'.'.$this->getKey();
return 'your.custom.interest.string';
}
```

Expand Down