Fenos\Notifynder\NotifynderManager::send PHP Method

send() public method

Send notifications Both multiple and single.
public send ( array $info = [] ) : mixed
$info array
return mixed
    public function send($info = [])
    {
        $info = count($info) > 0 ? $info : $this->toArray();
        $notificationSent = $this->notifynderSender->send($info, $this->defaultCategory);
        $this->refresh();
        return $notificationSent;
    }

Usage Example

Esempio n. 1
0
 /**
  * @test
  */
 function it_store_extra_field_as_json()
 {
     $this->createCategory(['name' => 'custom']);
     $extra = ['extra.name' => 'amazing'];
     $notifications = $this->notifynder->category('custom')->extra($extra)->url('w')->from(1)->to(1);
     $notifications = $this->notifynder->send($notifications);
     $this->assertEquals($notifications->extra->toArray(), $extra);
 }
All Usage Examples Of Fenos\Notifynder\NotifynderManager::send