mergeShippingAddress($request); Cart::addTaxes($request); return Cart::instance(); } private function mergeShippingAddress($request) { $request->merge([ 'shipping' => $request->ship_to_a_different_address ? $request->shipping : $request->billing, ]); } }