musonza / chat

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

Added 'data()' function to store details about message type in 'data' column of 'message' table #290

Closed ali4zimi closed 2 years ago

ali4zimi commented 2 years ago

Sometimes you might want to add details about a message. For example, when the message type is an attachment, and you want to add details such as the attachment's filename, and attachment's file URL, you can call the 'data()' function and pass your data as JSON. A column 'data' in the message table was also created to store this data.

ali4zimi commented 2 years ago

Dear @musonza, the old 'forked repository' has been deleted accidentally, and I couldn't push to the old PR anymore. Therefore, I re-forked your project and committed my changes please review them and also test them for errors. However, I have tested it in my application which works perfectly. Thanks to Max(@dh1) which mentioned it to me about it.

ali4zimi commented 1 year ago

This closes #281