app/Http/Controllers/Admin/CateController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $cate = Cate::all();
        $cate = $this->createTree($cate);
        return view('admin.cate.create',['cate'=>$cate]);
    }
public function create ( ) { $ cate = Cate :: all ( ) ; $ cate = $ this -> createTree ( $ cate ) ; return view ( 'admin.cate.create' , [ 'cate' => $ cate ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//调用无限极分类 //dd($cate);