protected function index()
    {
        $comments = $this->repository
        ->pushCriteria(app('Litepie\Repository\Criteria\RequestCriteria'))
        ->scopeQuery(function($query){
            return $query->orderBy('id','DESC');
        })->paginate();


        return $this->response->title(trans('blog::comment.names'))
            ->view('blog::public.comment.index')
            ->data(compact('comments'))
            ->output();
    }
protected function index()
    {
        $comments = $this->repository
        ->pushCriteria(app('Litepie\Repository\Criteria\RequestCriteria'))
        ->scopeQuery(function($query){
            return $query->orderBy('id','DESC');
        })->paginate();


        return $this->response->title(trans('blog::comment.names'))
            ->view('blog::public.comment.index')
            ->data(compact('comments'))
            ->output();
    }
protected function index ( ) { $ comments = $ this -> repository -> pushCriteria ( app ( 'Litepie\Repository\Criteria\RequestCriteria' ) ) -> scopeQuery ( function ( $ query ) { return $ query -> orderBy ( 'id' , 'DESC' ) ; } ) -> paginate ( ) ; return $ this -> response -> title ( trans ( 'blog::comment.names' ) ) -> view ( 'blog::public.comment.index' ) -> data ( compact ( 'comments' ) ) -> output ( ) ; }
Show comment's list.

@param string $slug

@return response
Show comment s list .