app/Http/Controllers/Inventory/StockController.php
public function update(InventoryStockRequest $request, $itemId, $stockId)
    {
        if ($this->processor->update($request, $itemId, $stockId)) {
            flash()->success('Success!', 'Successfully updated stock.');

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

            return redirect()->route('maintenance.inventory.stocks.update', [$itemId, $stockId]);
        }
    }
public function update(InventoryStockRequest $request, $itemId, $stockId)
    {
        if ($this->processor->update($request, $itemId, $stockId)) {
            flash()->success('Success!', 'Successfully updated stock.');

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

            return redirect()->route('maintenance.inventory.stocks.update', [$itemId, $stockId]);
        }
    }
Updates the specified stock for the specified inventory.

@param InventoryStockRequest $request
@param int|string            $itemId
@param int|string            $stockId

@return \Illuminate\Http\RedirectResponse