Michael Kuan says to Happy Web Developer
public function getAuthIdentifierName() { return 'id'; } public function getAuthIdentifier() { return $this->id; } public function getAuthPassword() { return; } public function getRememberToken() { return; } public function setRememberToken($value) { return; } public function getRememberTokenName() { return; } public function getJWTIdentifier() { return $this->getKey(); } public function getJWTCustomClaims() { return []; } 直接貼code給你