app/Http/Controllers/Admin/CommentController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $rows = Comment::orderBy('id', 'desc')->get();
        $title = $this->title;
        $url = $this->url;
        return view('admin.'.$url.'.index', compact('rows', 'title', 'url'));
    }
public function index ( ) { $ rows = Comment :: orderBy ( 'id' , 'desc' ) -> get ( ) ; $ title = $ this -> title ; $ url = $ this -> url ; return view ( 'admin.' . $ url . '.index' , compact ( 'rows' , 'title' , 'url' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//