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