Answers for "laravel collect where not"

PHP
1

laravel collect where not

<?php

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

return $original_price + $collection->whereNotIn('key', [$id])->sum('price') + $price;
Posted by: Guest on April-19-2022

Browse Popular Code Answers by Language