/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update($id, CateForm $result) { // try { if (Category::where('id', $id)->update(Category::setFieldData())) { Notification::success('更新成功'); return Redirect::route('backend.cate.index'); } } catch (\Exception $e) { return Redirect::back()->withErrors(array('error' => $e->getMessage()))->withInput(); } }