Skip to content

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
@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