Don't convert remember_token field

This commit is contained in:
Pig Fang 2019-08-08 14:31:03 +08:00
parent 06b4ec0dbe
commit 9209febd96
2 changed files with 0 additions and 12 deletions

View File

@ -53,7 +53,6 @@ class User extends Authenticatable implements JWTSubject
'last_sign_at', 'last_sign_at',
'register_at', 'register_at',
'verified', 'verified',
'remember_token',
]; ];
array_walk($columns, function ($column) { array_walk($columns, function ($column) {
static::$mappings[$column] = Arr::get(static::$mappings, $column, $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; $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() public function getPlayerNameAttribute()
{ {
$player = $this->players->first(); $player = $this->players->first();

View File

@ -17,6 +17,5 @@ class User extends Model
'last_sign_at' => 'bs_last_sign_at', 'last_sign_at' => 'bs_last_sign_at',
'register_at' => 'bs_register_at', 'register_at' => 'bs_register_at',
'verified' => 'bs_verified', 'verified' => 'bs_verified',
'remember_token' => 'bs_remember_token',
]; ];
} }