diff --git a/src/Illuminate/Notifications/Events/BroadcastNotificationCreated.php b/src/Illuminate/Notifications/Events/BroadcastNotificationCreated.php index 58407c47a548..5b25944ace1d 100644 --- a/src/Illuminate/Notifications/Events/BroadcastNotificationCreated.php +++ b/src/Illuminate/Notifications/Events/BroadcastNotificationCreated.php @@ -77,8 +77,8 @@ public function broadcastWith() */ protected function channelName() { - if (method_exists($this->notifiable, 'broadcastNotificationChannelName')) { - return $this->notifiable->broadcastNotificationChannelName($this->notification); + if (method_exists($this->notifiable, 'receivesBroadcastNotificationsOn')) { + return $this->notifiable->receivesBroadcastNotificationsOn($this->notification); } $class = str_replace('\\', '.', get_class($this->notifiable));