Owl\Repositories\Eloquent\CommentRepository::updateComment PHP Метод

updateComment() публичный Метод

Update a comment's body.
public updateComment ( $id, $body ) : Illuminate\Database\Eloquent\Model
$id int
$body string
Результат Illuminate\Database\Eloquent\Model
    public function updateComment($id, $body)
    {
        $comment = $this->getCommentById($id);
        $comment->body = $body;
        $comment->save();
        return $comment;
    }