コード例 #1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @return Response
  */
 public function update(BlogCategoryRequest $request, BlogCategory $blogcategory)
 {
     if ($blogcategory->update($request->all())) {
         return redirect('admin/blogcategory')->with('success', trans('blogcategory/message.success.update'));
     } else {
         return Redirect::route('admin/blogcategory')->withInput()->with('error', trans('blogcategory/message.error.update'));
     }
 }
コード例 #2
0
 /**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function postEdit(BlogCategoryRequest $request, BlogCategory $blogcategory)
 {
     $blogcategory->update($request->all());
     return redirect('admin/blogcategory');
 }