public function messagesHandled()
    {
        $messages = $this->buildReply($this->replies);

        // Reset replies
        $this->replies = [];

        Response::create(json_encode([
            'status' => $this->replyStatusCode,
            'messages' => $messages,
        ]), $this->replyStatusCode, [
            'Content-Type' => 'application/json',
            'Access-Control-Allow-Credentials' => true,
            'Access-Control-Allow-Origin' => '*',
        ])->send();
    }
public function messagesHandled()
    {
        $messages = $this->buildReply($this->replies);

        // Reset replies
        $this->replies = [];

        Response::create(json_encode([
            'status' => $this->replyStatusCode,
            'messages' => $messages,
        ]), $this->replyStatusCode, [
            'Content-Type' => 'application/json',
            'Access-Control-Allow-Credentials' => true,
            'Access-Control-Allow-Origin' => '*',
        ])->send();
    }
public function messagesHandled ( ) { $ messages = $ this -> buildReply ( $ this -> replies ) ; // Reset replies $ this -> replies = [ ] ; Response :: create ( json_encode ( [ 'status' => $ this -> replyStatusCode , 'messages' => $ messages , ] ) , $ this -> replyStatusCode , [ 'Content-Type' => 'application/json' , 'Access-Control-Allow-Credentials' => true , 'Access-Control-Allow-Origin' => '*' , ] ) -> send ( ) ; }
Send out message response.
Send out message response .