SimpleSoftwareIO\SMS\SMS::queueOn PHP Метод

queueOn() публичный Метод

Queues a SMS message to a given queue.
public queueOn ( null | string $queue, string $view, array $data, Closure | string $callback )
$queue null | string The desired queue to push the message to.
$view string The desired view.
$data array An array of data to fill the view.
$callback Closure | string The callback to run on the Message class.
    public function queueOn($queue, $view, $data, $callback)
    {
        $this->queue($view, $data, $callback, $queue);
    }

Usage Example

Пример #1
0
 /**
  * Queues a SMS message to a given queue.
  *
  * @param null|string $queue The desired queue to push the message to.
  * @param string $view The desired view.
  * @param array $data An array of data to fill the view.
  * @param \Closure|string $callback The callback to run on the Message class.
  * @return void 
  * @static 
  */
 public static function queueOn($queue, $view, $data, $callback)
 {
     \SimpleSoftwareIO\SMS\SMS::queueOn($queue, $view, $data, $callback);
 }