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

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

        $form = $this->presenter->form($item, $stock);

        return view('inventory.stocks.edit', compact('form'));
    }
public function edit($itemId, $stockId)
    {
        $item = $this->inventory->findOrFail($itemId);

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

        $form = $this->presenter->form($item, $stock);

        return view('inventory.stocks.edit', compact('form'));
    }
public function edit ( $ itemId , $ stockId ) { $ item = $ this -> inventory -> findOrFail ( $ itemId ) ; $ stock = $ item -> stocks ( ) -> findOrFail ( $ stockId ) ; $ form = $ this -> presenter -> form ( $ item , $ stock ) ; return view ( 'inventory.stocks.edit' , compact ( 'form' ) ) ; }
Displays the form for editing the specified items stock.

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

@return \Illuminate\View\View
Displays the form for editing the specified items stock .