public function setPasswordAttribute($password) { $this->attributes['password'] = md5(md5($password) . $this->login_salt); }