Laravel coleta onde não

<?php

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

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