leandrocfe / filament-ptbr-form-fields

This package provides custom form fields for Filament (>=v2.17.28) that are commonly used in Brazilian web applications, such as CPF/CNPJ validation, phone number formatting, money with currency symbol, and CEP integration with ViaCep.
MIT License
97 stars 17 forks source link

[Bug]: cpf only field return CPF + CNPJ validation message error #16

Open IgordeOliveira opened 9 months ago

IgordeOliveira commented 9 months ago

What happened?

quando uso somente cpf ta retornando mensagem de cpf + cnpj image

How to reproduce the bug

                            Document::make('cpf')
                                ->label("CPF")
                                ->validationAttribute('CPF')
                                ->cpf()
                                ->unique(ignorable: fn ($record) => $record)
                                ->required(),

Package Version

3.0

PHP Version

8.1

Laravel Version

10

Which operating systems does with happen with?

No response

Notes

No response