diff --git a/src/Feed.php b/src/Feed.php index 48936fb..3e91e04 100644 --- a/src/Feed.php +++ b/src/Feed.php @@ -57,7 +57,7 @@ public function push($notification, $notifiable) } foreach ($notifiable as $toBeNotified) { - if ( ! $toBeNotified instanceof Notifiable) { + if ( ! $toBeNotified instanceof Notifiable && !$tobeNotified instanceof NotifiableGroup) { throw new NotNotifiableException("The notifiable members must implement the notifiable interface."); } } @@ -75,7 +75,7 @@ public function push($notification, $notifiable) * @param string|array $notification * @param Notifiable $notifiable */ - protected function pushNotification($notification, Notifiable $notifiable) + protected function pushNotification($notification, $notifiable) { if ($notifiable instanceof NotifiableGroup) { foreach ($notifiable->getGroup() as $toBeNotified) {