Account::query()->updateOrCreate([ 'id' => $data['id'] ?? null, 'client_id' => $data['client_id'], ], Arr::except($data, ['starting_balance', 'branch_id'])), attempts: 2 ); } }