send() public method

Send any notifications.
public send ( array $info, null $category = null ) : mixed
$info array
$category null
return mixed
Exemplo n.º 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;
 }
Exemplo n.º 2
0
 /**
  * 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);
 }
Exemplo n.º 3
0
 /**
  * Send notification.
  *
  * @param NotifynderSender $sender
  * @return mixed
  */
 public function send(NotifynderSender $sender)
 {
     //        dd($storeNotification);
     return $sender->send($this->notifications);
 }