input('current_password'), $this->user()->password)) { throw new InvalidPasswordProvidedException(trans('base.account.invalid_password')); } return true; } /** * @return array */ public function rules(): array { $rules = User::getUpdateRulesForId($this->user()->id); return ['password' => array_merge($rules['password'], ['confirmed'])]; } }