input('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 [ 'email' => $rules['email'], 'password' => array_merge($rules['password'], ['confirmed']), ]; } }