/**
  * 处理新增菜单
  *
  * @auther yangyifan <*****@*****.**>
  */
 public function postAdd(MenuRequest $request)
 {
     $affected_number = MenuModel::create($request->all());
     return $affected_number > 0 ? $this->response(200, trans('response.add_success'), [], true, url('admin/menu/index')) : $this->response(400, trans('response.add_error'), [], true, url('admin/menu/index'));
 }
 /**
  * 获得全部菜单
  *
  * @auther yangyifan <*****@*****.**>
  */
 private function getAllMenu()
 {
     view()->share('menu_tree_data', MenuModel::getAllForMenuSide());
 }