Skip to content

Commit

Permalink
Merge pull request #2 from DevKingDigital/master
Browse files Browse the repository at this point in the history
Fixed bug with sending to groups
  • Loading branch information
michaeljennings authored Jun 30, 2016
2 parents e8e47bb + df67817 commit 4ff2902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}
Expand All @@ -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) {
Expand Down

0 comments on commit 4ff2902

Please sign in to comment.