Skip to content

Commit

Permalink
add laravel 5.4 compatibility and fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nahid committed Jan 31, 2017
1 parent 4438747 commit 6349245
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Messages/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class Message extends Model

public $timestamps = true;

protected $touches = ['conversation'];

public $fillable = [
'message',
Expand Down
2 changes: 2 additions & 0 deletions src/Talk.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ protected function makeMessage($conversationId, $message)
'is_seen' => 0,
]);

$message->conversation->touch();

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

return $message;
Expand Down

0 comments on commit 6349245

Please sign in to comment.