public function update(InventoryStockRequest $request, $itemId, $stockId)
    {
        $item = $this->inventory->findOrFail($itemId);

        $stock = $item->stocks()->findOrFail($stockId);

        return $this->dispatch(new Update($request, $item, $stock));
    }
public function update(InventoryStockRequest $request, $itemId, $stockId)
    {
        $item = $this->inventory->findOrFail($itemId);

        $stock = $item->stocks()->findOrFail($stockId);

        return $this->dispatch(new Update($request, $item, $stock));
    }
public function update ( InventoryStockRequest $ request , $ itemId , $ stockId ) { $ item = $ this -> inventory -> findOrFail ( $ itemId ) ; $ stock = $ item -> stocks ( ) -> findOrFail ( $ stockId ) ; return $ this -> dispatch ( new Update ( $ request , $ item , $ stock ) ) ; }
Updates the specified inventory stock.

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

@return bool
Updates the specified inventory stock .