Hi @Saurabh @[deleted],
I have added two columns 
 in the Orders table in the database.
I'm looking to add a script in the fixUpdateIssues function in the AdminController to update the user_email and user__phone columns.
 
But I'm getting this error and these are the code I'm using.
  
Is there any better way to achieve this?
`            $orders = Order::all();
            foreach ($orders as $order){
                $userId = $order->user_id;
                $userEmail = User::where('id', $userId)->first()->email;
                DB::table('orders')->whereIn('id',$userId)->update(['user_email' => $userEmail]);
                }`
