diff --git a/.env b/.env index f79c5ea..8ccf989 100644 --- a/.env +++ b/.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@ diff --git a/app/Models/User.php b/app/Models/User.php index 1aeddad..c578876 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -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');