public function send()
    {
        $message = $this->message ?: ($this->task ? ucwords($this->getSystemUser()).' ran the ['.$this->task.'] task.' : ucwords($this->getSystemUser()).' ran a task.');

        $payload = array_merge(['text' => $message, 'channel' => $this->channel], $this->options);

        Request::post("{$this->hook}")->sendsJson()->body($payload)->send();
    }
public function send()
    {
        $message = $this->message ?: ($this->task ? ucwords($this->getSystemUser()).' ran the ['.$this->task.'] task.' : ucwords($this->getSystemUser()).' ran a task.');

        $payload = array_merge(['text' => $message, 'channel' => $this->channel], $this->options);

        Request::post("{$this->hook}")->sendsJson()->body($payload)->send();
    }
public function send ( ) { $ message = $ this -> message ? : ( $ this -> task ? ucwords ( $ this -> getSystemUser ( ) ) . ' ran the [' . $ this -> task . '] task.' : ucwords ( $ this -> getSystemUser ( ) ) . ' ran a task.' ) ; $ payload = array_merge ( [ 'text' => $ message , 'channel' => $ this -> channel ] , $ this -> options ) ; Request :: post ( "{$this->hook}" ) -> sendsJson ( ) -> body ( $ payload ) -> send ( ) ; }
Send the Slack message.

@return void
Send the Slack message .