Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel collect where not

<?php

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

return $original_price + $collection->whereNotIn('key', [$id])->sum('price') + $price;
 
PREVIOUS NEXT
Tagged: #laravel #collect
ADD COMMENT
Topic
Name
6+1 =