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

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

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

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

            return redirect()->route('maintenance.inventory.stocks.show', [$itemId, $stockId]);
        }
    }
Removes the specified stock from the specified inventory.

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

@return \Illuminate\Http\RedirectResponse