We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2c48e9 commit f5197f8Copy full SHA for f5197f8
1 file changed
src/ChatifyMessenger.php
@@ -377,7 +377,7 @@ public function deleteConversation($user_id)
377
public function deleteMessage($id)
378
{
379
try {
380
- $msg = Message::where('from_id', auth()->id())->where('id', $id)->fristOrFail();
+ $msg = Message::where('from_id', auth()->id())->where('id', $id)->firstOrFail();
381
if (isset($msg->attachment)) {
382
// delete file attached if exist
383
$path = config('chatify.attachments.folder') . '/' . json_decode($msg->attachment)->new_name;
0 commit comments