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

[v7] Reorder HasForm trait parameters #5459

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Mar 1, 2024

WHY

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

Optional parameters before required are deprecated. They are "technically" required as pointed in #5458 .

AFTER - What is happening after this PR?

We change the order of the parameters. It's a breaking change.
In preparation for that, I've created Laravel-Backpack/Generators#204 that from now on will generate the stub with named parameters.

That way, this will not be a breaking change for developers that create their new forms with the command as the named parameters will ensure no breaking change for them.

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

Successfully merging this pull request may close these issues.

None yet

2 participants