1
0
mirror of https://github.com/flarum/core.git synced 2025-10-17 09:46:14 +02:00

Rename discussion.commentsCount

This commit is contained in:
Toby Zerner
2018-08-24 20:37:04 +09:30
parent e135b7830e
commit 7716944616
4 changed files with 8 additions and 8 deletions

View File

@@ -230,11 +230,11 @@ class Discussion extends AbstractModel
}
/**
* Refresh the discussion's comments count.
* Refresh the discussion's comment count.
*
* @return $this
*/
public function refreshCommentsCount()
public function refreshCommentCount()
{
$this->comment_count = $this->comments()->count();