app/Http/Controllers/Admin/BookController.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()
    {
        $book = Book::all();
        $book = $this->createTree($book);
        return view('admin.book.create',['book'=>$book]);
    }
public function create ( ) { $ book = Book :: all ( ) ; $ book = $ this -> createTree ( $ book ) ; return view ( 'admin.book.create' , [ 'book' => $ book ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//调用无限极分类 //dd($book);