Fenos\Notifynder\Contracts\NotifynderSender::sendGroup PHP Method

sendGroup() public method

Send a group of notifications at once.
public sendGroup ( $groupName, array $info = [] ) : mixed
$groupName
$info array
return mixed
    public function sendGroup($groupName, $info = []);

Usage Example

Ejemplo n.º 1
0
 /** @test */
 public function it_send_a_group_of_notification()
 {
     $group = $this->createGroup(['name' => 'mygroud']);
     $category1 = $this->createCategory();
     $category2 = $this->createCategory();
     $category3 = $this->createCategory();
     $this->group->addMultipleCategoriesToGroup($group->name, $category1->name, $category2->name, $category3->name);
     $this->senders->sendGroup($group->name, ['from_id' => 1, 'to_id' => 2, 'url' => 'www.notifynder.io']);
     $this->assertCount(3, Notification::all());
 }
All Usage Examples Of Fenos\Notifynder\Contracts\NotifynderSender::sendGroup