Object of class App\DeliveryAddress could not be converted to int

Posted 6 months ago by helpmyworld

Please help, I did my research but I seem to get nowhere with "Object of class App\DeliveryAddress could not be converted to int"


public function checkout (Request $request){

if($shippingCount>0){
                //update shipping address
                DeliveryAddress::where('user_id', $user_id)->update([
                    'name'=>$data['shipping_name'],
                    'address'=>$data['shipping_address'],
                    'city'=>$data['shipping_city'],
                    'state'=>$data['shipping_state'],
                    'pincode'=>$data['shipping_pincode'],
                    'country'=>$data['shipping_country'],
                    'mobile'=>$data['shipping_mobile']
                ]);

Please sign in or create an account to participate in this conversation.