From 4d0a266271675b7dddfd1ecf8990af5d18b91dbd Mon Sep 17 00:00:00 2001 From: Mike Meijer Date: Fri, 19 Apr 2024 10:07:01 +0200 Subject: [PATCH] Update RuntimeException message when no data has been found --- src/Illuminate/Notifications/Channels/BroadcastChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Notifications/Channels/BroadcastChannel.php b/src/Illuminate/Notifications/Channels/BroadcastChannel.php index 1389f49c6ac8..e1010afc9e19 100644 --- a/src/Illuminate/Notifications/Channels/BroadcastChannel.php +++ b/src/Illuminate/Notifications/Channels/BroadcastChannel.php @@ -70,6 +70,6 @@ protected function getData($notifiable, Notification $notification) return $notification->toArray($notifiable); } - throw new RuntimeException('Notification is missing toArray method.'); + throw new RuntimeException('Notification is missing toBroadcast / toArray method.'); } }