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

Do not use request if no request validation set #207

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Oct 15, 2024

WHY

fixes: Laravel-Backpack/community-forum#1191

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

When choosing array or field validation for a crud-controller, the use Request statement would still be in the generated class, raising errors as that class is only created when using request validation.

AFTER - What is happening after this PR?

We do not use the request if the validation does not use the request.

HOW

How did you achieve that, in technical terms?

replaced some strings in the stub.

Is it a breaking change or non-breaking change?

non

@pxpm pxpm merged commit cd193ad into main Oct 15, 2024
3 of 4 checks passed
@pxpm pxpm deleted the do-not-use-request-if-no-request-validation-set branch October 15, 2024 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[Bug] Generating CRUD controller without request still adds request to "use" block
2 participants