Skip to content

Commit

Permalink
Update RuntimeException message when no data has been found
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemeijer committed Apr 19, 2024
1 parent 22f4864 commit 4d0a266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Notifications/Channels/BroadcastChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
}

0 comments on commit 4d0a266

Please sign in to comment.