send() public method

Send any notifications.
public send ( array $info, null $category = null ) : mixed
$info array
$category null
return mixed
Beispiel #1
0
 /**
  * Send notifications
  * Both multiple and single.
  *
  * @param  array $info
  * @return mixed
  */
 public function send($info = [])
 {
     $info = count($info) > 0 ? $info : $this->toArray();
     $notificationSent = $this->notifynderSender->send($info, $this->defaultCategory);
     $this->refresh();
     return $notificationSent;
 }
 /**
  * Send notifications
  * Both multiple and single
  *
  * @param  array $info
  * @return mixed
  */
 public function send($info = [])
 {
     $info = count($info) > 0 ? $info : $this->toArray();
     return $this->notifynderSender->send($info, $this->defaultCategory);
 }
Beispiel #3
0
 /**
  * Send notification.
  *
  * @param NotifynderSender $sender
  * @return mixed
  */
 public function send(NotifynderSender $sender)
 {
     //        dd($storeNotification);
     return $sender->send($this->notifications);
 }