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

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

        return $stock->delete();
    }
public function destroy($itemId, $stockId)
    {
        $item = $this->inventory->findOrFail($itemId);

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

        return $stock->delete();
    }
public function destroy ( $ itemId , $ stockId ) { $ item = $ this -> inventory -> findOrFail ( $ itemId ) ; $ stock = $ item -> stocks ( ) -> findOrFail ( $ stockId ) ; return $ stock -> delete ( ) ; }
Deletes the specified inventory stock.

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

@return bool
Deletes the specified inventory stock .