Exemplo n.º 1
0
 public function update(CategoryRequest $request, $id)
 {
     $Category = Category::find($id);
     $Category->name = $request->get('name', $Category->name);
     $Category->description = $request->get('description', $Category->description);
     $Category->save();
     return redirect()->route($this->view_dir . '.index')->with('success', 'Record updated.');
 }