Exemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function getMain(Menu $menu)
 {
     $menus = list_to_tree($menu->getMenuByLevel(2, ['id', 'pid', 'title'])->toArray());
     return view('admin.menu_index')->withMenus($menus);
 }