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

        $stock = $item->stocks()->getRelated();

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

        $stock = $item->stocks()->getRelated();

        return $this->dispatch(new Store($request, $item, $stock));
    }
public function store ( InventoryStockRequest $ request , $ itemId ) { $ item = $ this -> inventory -> findOrFail ( $ itemId ) ; $ stock = $ item -> stocks ( ) -> getRelated ( ) ; return $ this -> dispatch ( new Store ( $ request , $ item , $ stock ) ) ; }
Creates a new stock on the specified item.

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

@return bool
Creates a new stock on the specified item .