protected function makeMessage($conversationId, $message)
    {
        $message = $this->message->create([
            'message' => $message,
            'conversation_id' => $conversationId,
            'user_id' => $this->authUserId,
            'is_seen' => 0,
        ]);

        $message->conversation->touch();

        $this->broadcast->transmission($message);

        return $message;
    }
protected function makeMessage($conversationId, $message)
    {
        $message = $this->message->create([
            'message' => $message,
            'conversation_id' => $conversationId,
            'user_id' => $this->authUserId,
            'is_seen' => 0,
        ]);

        $message->conversation->touch();

        $this->broadcast->transmission($message);

        return $message;
    }
protected function makeMessage ( $ conversationId , $ message ) { $ message = $ this -> message -> create ( [ 'message' => $ message , 'conversation_id' => $ conversationId , 'user_id' => $ this -> authUserId , 'is_seen' => 0 , ] ) ; $ message -> conversation -> touch ( ) ; $ this -> broadcast -> transmission ( $ message ) ; return $ message ; }
create a new message by using conversationId.

@param int    $conversationId
@param string $message

@return \Nahid\Talk\Messages\Message
create a new message by using conversationId .