Owl\Http\Controllers\CommentController::update PHP Метод

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

public update ( )
    public function update()
    {
        if (!($comment = $this->commentService->getCommentById(\Input::get('id')))) {
            return \Response::make("", $this->status);
        }
        $comment = $this->commentService->updateComment($comment->id, \Input::get('body'));
        $needContainerDiv = false;
        //remove outer div for update js div replace
        return \View::make('comment.body', compact('comment', 'needContainerDiv'));
    }