Laravel\Envoy\Hipchat::send PHP Метод

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

Send the HipChat message.
public send ( ) : mixed
Результат mixed
    public function send()
    {
        $message = $this->message ?: ucwords($this->getSystemUser()) . ' ran the [' . $this->task . '] task.';
        $format = $message != strip_tags($message) ? 'html' : 'text';
        $query = ['auth_token' => $this->token];
        $payload = ['from' => $this->from, 'message' => $message, 'message_format' => $format, 'notify' => true, 'color' => $this->color];
        return Request::post('https://api.hipchat.com/v2/room/' . $this->room . '/notification?' . http_build_query($query))->sendsJson()->body(json_encode($payload))->send();
    }