domainId === null || $data->customerId === null) { return false; } DB::table('dns_domain_user')->updateOrInsert( ['domain_id' => $data->domainId, 'user_id' => $data->customerId], [ 'created_at' => $data->createdAt, 'updated_at' => $data->updatedAt, ] ); return true; } }