/** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param Menu $menu * @return \Illuminate\Http\Response */ public function update(MenuRequest $request, Menu $menu) { if ($menu->update($request->all())) { Flash::success('保存成功!'); } else { Flash::error('保存失败!'); } return Redirect::back(); }