When adding this function to User model as descriped in your documentation here
public function routeNotificationFor($channel)
{
if($channel === 'PusherPushNotifications'){
return 'your.custom.interest.string';
}
$class = str_replace('\\', '.', get_class($this));
return $class.'.'.$this->getKey();
}
the error above comes by 😑
and this is my via method in my notification
public function via($notifiable)
{
return [PusherChannel::class , 'database'];
}