|
@@ -131,7 +131,7 @@ class Menu extends Controller
|
|
|
public function all(): JsonResponse
|
|
public function all(): JsonResponse
|
|
|
{
|
|
{
|
|
|
$result = MenuService::findAll();
|
|
$result = MenuService::findAll();
|
|
|
-// $result = list_to_tree($result->toArray());
|
|
|
|
|
|
|
+ $result = list_to_tree($result->toArray());
|
|
|
return $this->success($result);
|
|
return $this->success($result);
|
|
|
}
|
|
}
|
|
|
|
|
|