musonza / chat

A Laravel chat package. You can use this package to create a chat/messaging Laravel application.
MIT License
1.12k stars 308 forks source link

Error Call to undefined method Musonza\Chat\Services\MessageService::data() #293

Closed samehdoush closed 2 years ago

samehdoush commented 2 years ago

Describe the bug Error Call to undefined method Musonza\Chat\Services\MessageService::data() When send message with data

To Reproduce Steps to reproduce the behavior:

  1. $message = Chat::message('Attachment 1') ->type('attachment') ->data(['file_name' => 'post_image.jpg', 'file_url' => 'http://example.com/post_img.jpg']) ->from($model) ->to($conversation) ->send();
  2. See error

Screenshots image

musonza commented 2 years ago

Hey, you need to have this version installed https://github.com/musonza/chat/releases/tag/v5.0.0