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

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

            return redirect()->route('maintenance.inventory.stocks.create', [$itemId]);
        }
    }
public function store(InventoryStockRequest $request, $itemId)
    {
        if ($this->processor->store($request, $itemId)) {
            flash()->success('Success!', 'Successfully created stock.');

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

            return redirect()->route('maintenance.inventory.stocks.create', [$itemId]);
        }
    }
Create a new stock entry for the specified inventory item.

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

@return \Illuminate\Http\RedirectResponse