mglnr = $credentials['mglnr']; $user->groupid = $credentials['groupid']; return $user; } public function getNamiApi() { return app(Api::class)->setUser($this)->login( $this->mglnr, cache('member.'.$this->mglnr)['credentials']['password'], $this->groupid ); } public function attemptNamiLogin($password) { return Nami::setUser($this)->login($this->mglnr, $password, $this->groupid); } public function getNamiGroupId() { return $this->groupid; } public static function fromId($id) { list($mglnr, $groupid) = explode('-', $id); $user = new static(); $user->mglnr = $mglnr; $user->groupid = $groupid; return $user; } public function getAuthIdentifierName() { return 'mglnr'; } public function getAuthIdentifier() { return $this->{$this->getAuthIdentifierName()}.'-'.$this->groupid; } public function getAuthPassword() { return null; } public function getRememberToken() { return null; } public function setRememberToken($value) {} public function getRememberTokenName() { return null; } }