abkrim
4 months ago
647
5
Nova

PasswordConfirmation with translations not work validation

Posted 4 months ago by abkrim

My app uses translations.

I use latest laravel nova 2.X and laravel 6.X

When try use translations, validations not check if user confirm password or if this is wrong. Save form without confirmation.

Password::make(__('Password'), 'password')
    ->onlyOnForms()
    ->creationRules('required', 'string', 'min:8')
    ->updateRules('nullable', 'string', 'min:8'),

PasswordConfirmation::make(__('Password Confirmation'), 'password_confirmation')
->onlyOnForms(),

Any mistake on code?

Please sign in or create an account to participate in this conversation.