From 5e209bca5d09884cce9bd3a4da3f2af71e1f31f6 Mon Sep 17 00:00:00 2001 From: Mike Meijer Date: Fri, 19 Apr 2024 17:13:16 +0200 Subject: [PATCH] Update RuntimeException message when no data has been found (#51133) --- 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.'); } }