Change DB
This commit is contained in:
parent
e16c4f9158
commit
6a4dffac53
2
.env
2
.env
@ -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@
|
||||
|
||||
|
||||
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user