authService->check(); } public function toUpdateCustomerPasswordInput(): UpdateCustomerPasswordInput { return new UpdateCustomerPasswordInput( $this->string('password_old')->value(), $this->string('password')->value() ); } /** @return array */ public function rules(): array { return [ 'password_old' => ['required'], 'password' => [ 'required', 'required_with:password_confirmation', 'confirmed', 'max:255', Password::min(8) ->mixedCase() ->letters() ->numbers() ->symbols() ->uncompromised(), ], ]; } }