From 9209febd9621bf7e96fc7de2b9239df5cf98b670 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Thu, 8 Aug 2019 14:31:03 +0800 Subject: [PATCH] Don't convert `remember_token` field --- app/Models/User.php | 11 ----------- tests/Concerns/User.php | 1 - 2 files changed, 12 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 6d40d550..47cb39ca 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -53,7 +53,6 @@ class User extends Authenticatable implements JWTSubject 'last_sign_at', 'register_at', 'verified', - 'remember_token', ]; array_walk($columns, function ($column) { static::$mappings[$column] = Arr::get(static::$mappings, $column, $column); @@ -209,16 +208,6 @@ class User extends Authenticatable implements JWTSubject $this->attributes[static::$mappings['verified']] = $value; } - public function getRememberTokenAttribute() - { - return $this->attributes[static::$mappings['remember_token']]; - } - - public function setRememberTokenAttribute($value) - { - $this->attributes[static::$mappings['remember_token']] = $value; - } - public function getPlayerNameAttribute() { $player = $this->players->first(); diff --git a/tests/Concerns/User.php b/tests/Concerns/User.php index 993b2dc9..e84c07ee 100644 --- a/tests/Concerns/User.php +++ b/tests/Concerns/User.php @@ -17,6 +17,5 @@ class User extends Model 'last_sign_at' => 'bs_last_sign_at', 'register_at' => 'bs_register_at', 'verified' => 'bs_verified', - 'remember_token' => 'bs_remember_token', ]; }