Laravel sammeln wo nicht

<?php

$collection = collect(session()->get('product_option_price')[$product_id]);

return $original_price + $collection->whereNotIn('key', [$id])->sum('price') + $price;
Shadow