Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A prepareForValidation method #30

Open
ziming opened this issue Oct 6, 2021 · 1 comment
Open

A prepareForValidation method #30

ziming opened this issue Oct 6, 2021 · 1 comment

Comments

@ziming
Copy link
Contributor

ziming commented Oct 6, 2021

It will be great if there is a prepareForValidation() method just like in Form Request. Will be helpful for checkbox fields especially. Where we want to do a $this->boolean('checkbox_field')

I see that the Field class has a transform() method, but not sure if it is equivalent to Laravel FormRequest's prepareForValidation() as I didn't see it get called before the $this->validate(...) in WizardStep processStep() method

@ksassnowski
Copy link
Collaborator

I have to admit that I didn't even know about the prepareForValidation method of the FormRequest class 😅 . I will have to look into this before I can comment any further, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants