src/Http/Controllers/ResponseResourceController.php
public function index(ResponseRequest $request)
    {
        $view = $this->response->theme->listView();

        if ($this->response->typeIs('json')) {
            $function = camel_case('get-' . $view);
            return $this->repository
                ->setPresenter(\Litecms\Forum\Repositories\Presenter\ResponsePresenter::class)
                ->$function();
        }

        $responses = $this->repository->paginate();

        return $this->response->title(trans('forum::response.names'))
            ->view('forum::response.index', true)
            ->data(compact('responses'))
            ->output();
    }
public function index(ResponseRequest $request)
    {
        $view = $this->response->theme->listView();

        if ($this->response->typeIs('json')) {
            $function = camel_case('get-' . $view);
            return $this->repository
                ->setPresenter(\Litecms\Forum\Repositories\Presenter\ResponsePresenter::class)
                ->$function();
        }

        $responses = $this->repository->paginate();

        return $this->response->title(trans('forum::response.names'))
            ->view('forum::response.index', true)
            ->data(compact('responses'))
            ->output();
    }
Display a list of response.

@return Response