$query = Payment::query(); foreach ($input as $column => $values) { $query->whereIn($column, $values); } $zip = $query->first()->VendorZIP;
$query = Payment::query(); foreach ($input as $column => $values) { $query->whereIn($column, $values); } $zip = $query->first()->VendorZIP;