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

add option to generate forms without id, use named parameters in formAction #204

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Mar 1, 2024

WHY

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

I have the need to quickly generate forms that are not using id in routes.

Even if the "required change" is to make routesHaveIdSegment: false, the generated Operation had alot of $id references when not needed, so they needed to manually cleaned.

AFTER - What is happening after this PR?

One can use --no-id to generate a form without $id parameter.

The generated operation files will now on use named parameters on the formAction callback.

This will also help in the fact that we need to do a breaking change in Laravel-Backpack/CRUD#5459 and people generating operations with the commands after this PR will not be affected.

@pxpm pxpm changed the title add option to generate forms without id add option to generate forms without id, use named parameters in formAction Mar 1, 2024
@pxpm pxpm merged commit 996a09a into main Mar 1, 2024
4 checks passed
@pxpm pxpm deleted the add-option-to-create-forms-without-id-in-route branch March 1, 2024 13:06
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.

1 participant