Change DB

This commit is contained in:
adesyawal 2025-03-26 17:36:33 +07:00
parent e16c4f9158
commit 6a4dffac53
2 changed files with 4 additions and 1 deletions

2
.env
View File

@ -14,7 +14,7 @@ EVEL=debug
DB_CONNECTION=pgsql
DB_HOST=172.16.88.22
DB_PORT=5432
DB_DATABASE=test_db_telekonsul
DB_DATABASE=login_auth
DB_USERNAME=simrs
DB_PASSWORD=@S1mrs.3205@

View File

@ -25,6 +25,7 @@ class User extends Authenticatable implements MustVerifyEmail, HasMedia
'first_name',
'last_name',
'phone_number',
'full_name',
'status',
'banned',
'email',
@ -51,12 +52,14 @@ class User extends Authenticatable implements MustVerifyEmail, HasMedia
'email_verified_at' => 'datetime',
];
/*
protected $appends = ['full_name'];
public function getFullNameAttribute()
{
return $this->first_name . ' ' . $this->last_name;
}
*/
public function userProfile() {
return $this->hasOne(UserProfile::class, 'user_id', 'id');