app/Http/Controllers/Inventory/InventoryController.php
public function update(InventoryRequest $request, $id)
    {
        if ($this->processor->update($request, $id)) {
            flash()->success('Success!', 'Successfully updated inventory item.');

            return redirect()->route('maintenance.inventory.show', [$id]);
        } else {
            flash()->error('Error!', 'There was an issue updating this inventory item. Please try again.');

            return redirect()->route('maintenance.inventory.edit', [$id]);
        }
    }
public function update(InventoryRequest $request, $id)
    {
        if ($this->processor->update($request, $id)) {
            flash()->success('Success!', 'Successfully updated inventory item.');

            return redirect()->route('maintenance.inventory.show', [$id]);
        } else {
            flash()->error('Error!', 'There was an issue updating this inventory item. Please try again.');

            return redirect()->route('maintenance.inventory.edit', [$id]);
        }
    }
Updates the specified inventory item.

@param InventoryRequest $request
@param int|string       $id

@return \Illuminate\Http\RedirectResponse