Explorar o código

清除CategoryController 无用的注释代码

Moell %!s(int64=9) %!d(string=hai) anos
pai
achega
f3cb3dda4c
Modificáronse 1 ficheiros con 0 adicións e 7 borrados
  1. 0 7
      app/Http/Controllers/Backend/CategoryController.php

+ 0 - 7
app/Http/Controllers/Backend/CategoryController.php

@@ -27,13 +27,6 @@ class CategoryController extends Controller
      */
     public function index()
     {
-        /*$root = Category::create(['name' => 'Root category2']);
-        $child1 = $root->children()->create(['name' => 'Child 1']);
-
-        // with the `makeChildOf` method
-        $child2 = Category::create(['name' => 'Child 2']);
-        $child2->makeChildOf($root);
-        exit();*/
         $category = $this->category->getNestedList();
         return view("backend.category.index", compact('category'));
     }