ip(1); } protected function setPasswordAttr($value) { return $this->getPwdHash($value); } public function getPwdHash( $pwd ){ $hashKey = config('auth_key'); $newPwd = $pwd.$hashKey; return md5(sha1($newPwd).$hashKey); } }