瀏覽代碼

清除CategoryController 无用的注释代码

Moell 9 年之前
父節點
當前提交
f3cb3dda4c
共有 1 個文件被更改,包括 0 次插入7 次删除
  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()
     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();
         $category = $this->category->getNestedList();
         return view("backend.category.index", compact('category'));
         return view("backend.category.index", compact('category'));
     }
     }