-
Notifications
You must be signed in to change notification settings - Fork 829
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
Changes to "route" parameter in Form::open in v6.1.1 #648
Comments
https://laravel.com/docs/7.x/routing#named-routes
|
Yes, the But this syntax was supported deliberately with the use of |
Please do not risk compromising 7 years of people's code to facilitate one developer's use cases. #627 didn't even update |
I don't know what was going on until my deployment failed after the update. I manage a lot of web app that are in production, and lately it seems that everything broke 😅 and i know my comment is not useful at all but i agree with @rogermui, i use collective for 5 years now and it's not safe to change those 'legacy' behaviors, at least this one, which is a real breaking change ! So, for my part, i was a huge fan of this library but i think this time i'll have to write my own forms or change the way url are managed with forms. i'll revert to the 6.1.0 and change my 'route' to 'url' and use Laravel own route helper. |
I apologize for breaking this package for so many people. I wasn't aware that it was being used in an undocumented way. I attempted to be clear in #627 with what I was attempting to fix. I agree that a pull request shouldn't break existing functionality. |
Sorry all for causing any issues. I was doing reviews and should have dug deeper into this PR. Mistakes happen, v6.1.2 contains the PR which reverted the impacts. |
With pull request #627, the way of passing multiple route parameters to
Form::open
changed under the guise of a bug fix from:Form::open(['route' => ['route.name', 'id' => 1, 'foo' => 'bar']])
to:
Form::open(['route' => ['route.name', ['id' => 1, 'foo' => 'bar']]])
Can we maintain backwards compatibility?
@ChrisThompsonTLDR @mlantz
The text was updated successfully, but these errors were encountered: