password; $user = $this; $passed = $cipher->verify($raw, $password, config('secure.salt')); $passed = $filter->apply('verify_password', $passed, [$raw, $user]); return $passed; } public function changePassword(string $password): bool { $password = resolve('cipher')->hash($password, config('secure.salt')); $password = resolve(Filter::class)->apply('user_password', $password); $this->password = $password; return $this->save(); } }