public function send($title, $content, $flag)
    {
        $headers = [];

        $query = [
            'title' => $title,
            'content' => $content,
            'flag' => $flag,
        ];


        if (is_null($this->webhook)) {
            throw new Exception("Missing webhook", 1);
        }

        $response = $this->curl::post($this->webhook, $headers, $query);

        if ($response->code != 200) {
            $this->error('Unable to message Mission Control, please confirm your webhook');
        }

        return true;
    }
public function send($title, $content, $flag)
    {
        $headers = [];

        $query = [
            'title' => $title,
            'content' => $content,
            'flag' => $flag,
        ];


        if (is_null($this->webhook)) {
            throw new Exception("Missing webhook", 1);
        }

        $response = $this->curl::post($this->webhook, $headers, $query);

        if ($response->code != 200) {
            $this->error('Unable to message Mission Control, please confirm your webhook');
        }

        return true;
    }
public function send ( $ title , $ content , $ flag ) { $ headers = [ ] ; $ query = [ 'title' => $ title , 'content' => $ content , 'flag' => $ flag , ] ; if ( is_null ( $ this -> webhook ) ) { throw new Exception ( "Missing webhook" , 1 ) ; } $ response = $ this -> curl :: post ( $ this -> webhook , $ headers , $ query ) ; if ( $ response -> code != 200 ) { $ this -> error ( 'Unable to message Mission Control, please confirm your webhook' ) ; } return true ; }
Send the data to Mission Control

@param  string $title
@param  string $content
@param  string $flag

@return bool
Send the data to Mission Control