verification code

This commit is contained in:
pajri
2024-06-19 10:53:59 +07:00
parent 3fcaa6a4be
commit c3341eef8d
4 changed files with 18 additions and 10 deletions

View File

@@ -23,6 +23,8 @@ use Box\Spout\Common\Entity\Row;
use Carbon\Carbon;
use DateTime;
use DB;
use Ramsey\Uuid\Uuid;
use Str;
class MemberEnrollmentService
{
@@ -816,11 +818,13 @@ class MemberEnrollmentService
UserInsurance::updateOrCreate(
['nIDUser' => $nIDUser],
[
'nIDInsurance' => 106,
'sNamaPeserta' => $row['name'],
'dStartDate' => $row['member_effective_date'],
'dExpireDate' => $row['member_expiry_date'],
'dTanggalLahir' => $row['date_of_birth'] ? $this->dateParser($row['date_of_birth']) : null,
'sNoPolis' => $row['member_id']
'sNoPolis' => $row['member_id'],
'sVerificationCode' => (string) Uuid::uuid5(Uuid::NAMESPACE_DNS, $row['member_id'])
]
);
@@ -1109,11 +1113,13 @@ class MemberEnrollmentService
UserInsurance::updateOrCreate(
['nIDUser' => $nIDUser],
[
'nIDInsurance' => 106,
'sNamaPeserta' => $row['name'],
'dStartDate' => $row['member_effective_date'],
'dExpireDate' => $row['member_expiry_date'],
'dTanggalLahir' => $row['date_of_birth'] ? $this->dateParser($row['date_of_birth']) : null,
'sNoPolis' => $row['member_id']
'sNoPolis' => $row['member_id'],
'sVerificationCode' => (string) Uuid::uuid5(Uuid::NAMESPACE_DNS, $row['member_id'])
]
);
/* Lihat ID Marital status di table tm_status_pernikahan Linksehat */

View File

@@ -26,6 +26,7 @@ class UserInsurance extends Model
'dTanggalLahir',
'nNoKTP',
'sNoPolis',
'sVerificationCode',
'nIDInsurance',
'sLayanan',
];

View File

@@ -26,6 +26,7 @@
"phpmailer/phpmailer": "^6.9",
"psr/simple-cache": "^1.0",
"pusher/pusher-php-server": "^7.2",
"ramsey/uuid": "^4.7",
"spatie/browsershot": "^3.61",
"spatie/laravel-permission": "^5.9"
},

16
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "376b19f2ad42a940a917ec375fdd6c9d",
"content-hash": "15904ea4b6523bc5ea58867fe9c90f5a",
"packages": [
{
"name": "barryvdh/laravel-dompdf",
@@ -6358,20 +6358,20 @@
},
{
"name": "ramsey/uuid",
"version": "4.7.5",
"version": "4.7.6",
"source": {
"type": "git",
"url": "https://github.com/ramsey/uuid.git",
"reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e"
"reference": "91039bc1faa45ba123c4328958e620d382ec7088"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e",
"reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/91039bc1faa45ba123c4328958e620d382ec7088",
"reference": "91039bc1faa45ba123c4328958e620d382ec7088",
"shasum": ""
},
"require": {
"brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11",
"brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12",
"ext-json": "*",
"php": "^8.0",
"ramsey/collection": "^1.2 || ^2.0"
@@ -6434,7 +6434,7 @@
],
"support": {
"issues": "https://github.com/ramsey/uuid/issues",
"source": "https://github.com/ramsey/uuid/tree/4.7.5"
"source": "https://github.com/ramsey/uuid/tree/4.7.6"
},
"funding": [
{
@@ -6446,7 +6446,7 @@
"type": "tidelift"
}
],
"time": "2023-11-08T05:53:05+00:00"
"time": "2024-04-27T21:32:50+00:00"
},
{
"name": "riverline/multipart-parser",