Exemplo n.º 1
0
 public function update(Equipment $equipment, EquipmentRequest $request, $id)
 {
     $equipment = Equipment::findOrFail($id);
     $equipment->update($request->all());
     return redirect('equipments');
 }
Exemplo n.º 2
0
 /**
  * @param $id
  * @param EquipmentRequest $request
  * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
  */
 public function update($id, EquipmentRequest $request)
 {
     $item = Equipment::findorfail($id);
     $item->update($request->all());
     return redirect()->route('inventory.index');
 }