When creating a User with Backpack's CRUD, how can I add a field in setupCreateOperation for both my password and the password confirmation? I know I can add a field for the password in multiple ways, for example
CRUD::addField([
'name' => 'password',
'label' => 'Password',
'type' => 'password',
]);
but how can I add a second field for password confirmation and use it just in the validation without persisting it to the database?
Ok, I solved this basically adding a custom store method and removing the 'password_confirmation' field from the request, I found this solution here