/** * Update the specified resource in storage. * * @param Request $request * @param int $id * @return Response */ public function update(Request $request, $id) { // $inventario = Inventario::find($id); $inventario->fill($request->all()); $inventario->save(); return redirect('/inventario')->with('message', 'edit'); }
public function findall() { return $Inventario = Inventario::all(); }