update real-time ke lms

This commit is contained in:
2023-07-28 10:23:28 +07:00
parent 24a4710318
commit dccd4f70b9
4 changed files with 126 additions and 2 deletions

View File

@@ -23,6 +23,17 @@ class User extends Model
'full_name',
];
protected $primaryKey = 'nID';
protected $fillable = [
'nID',
'sFirstName',
'sLastName',
'sPhone',
'sEmail',
'nIDHubunganKeluarga',
'dUpdateOn',
];
protected function fullName(): Attribute
{
return Attribute::make(

View File

@@ -14,7 +14,19 @@ class UserDetail extends Model
const DELETED_AT = 'dDeleteOn';
protected $connection = 'oldlms';
protected $primaryKey = 'nID';
protected $table = 'tm_users_detail';
protected $fillable = [
'nIDUser',
'dTanggalLahir',
'dCreateOn',
'sMartialStatus',
'nIDJenisKelamin',
'sCreateBy',
'sKTP',
];
}

View File

@@ -15,6 +15,16 @@ class UserInsurance extends Model
const DELETED_AT = 'dDeleteOn';
protected $connection = 'oldlms';
protected $primaryKey = 'nIDUser';
protected $table = 'tm_users_insurance';
protected $fillable = [
'nIDUser',
'sNamaPeserta',
'dStartDate',
'dExpireDate',
'dTanggalLahir',
'nNoKTP',
'sNoPolis',
];
}