Browse Source

清除CategoryController 无用的注释代码

Moell 9 years ago
parent
commit
f3cb3dda4c
1 changed files with 0 additions and 7 deletions
  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'));
     }