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

fix controller generation when field is used as validation source #203

Merged

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Jan 30, 2024

WHY

BEFORE - What was wrong? What was happening before this PR?

Trying to create a CrudController with php artisan backpack:crud Something and choosing the fields has the validation source, the command would fail to remove the setValidation from the final class, and that would raise errors since the RequestClass is not created when fields is chose.

AFTER - What is happening after this PR?

It works 🤷‍♂️

@pxpm pxpm merged commit aa90e14 into main Jan 30, 2024
4 checks passed
@pxpm pxpm deleted the fix-controller-generation-when-field-is-chosen-as-validation branch January 30, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant