app/Http/Controllers/Admin/CateController.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()
    {
        $cate = Cate::all();
        $cate = $this->createTree($cate);
        return view('admin.cate.index',['cate'=>$cate]);
    }
public function index ( ) { $ cate = Cate :: all ( ) ; $ cate = $ this -> createTree ( $ cate ) ; return view ( 'admin.cate.index' , [ 'cate' => $ cate ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
//调用无限极分类