-
Notifications
You must be signed in to change notification settings - Fork 825
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
Added Laravel 5.6 stable support #484
Conversation
Thanks! I'll get this merged and tagged today. |
Double encoding is a default in PHP itself. If you choose to opt out of double encoding then imagine scenario like this: Lets say you put the code below in input field and submit the form
once the form is submitted and you are returned back to the same input field you will NOT see the same thing you put there, but you will see this instead
Do you see the reason why double encoding is True by default in PHP? =) |
We could always add a option to let the user enable and disable. Something like adding this to the app service provider.
or
|
If it's possible to somehow get the value from Those who want double encoding can do so in the laravel framework itself and those who don't want can also do the same now. Those who upgrade to 5.6 will have to go through upgrade guide either way and decide whether they wish to leave double encoding disabled or go with the defaults in Laravel and PHP. What do you think? =) |
Could you update the version support for now? New features can take time to discuss and implement. |
Yea, lets get this out and come up with something. |
Laravel since version 5.5 comes with new option I think laravelcollective/html should just encode based on that and not create extra functionality that might just complicate and/or confuse developers in the long run. Though one thing I might add is that conditional override for input fields like you mentioned "might" be a feature request in future that someone might ask. Edit: |
Support for 5.6, tests do pass.
While checking the tests I found a bug, where the
$optGroupAttributes
wheren't added to the optgroup but where added to the child options, instead of their respective attributes. (The bug came up with the changes made in #470)I'd like to mention that I opted out double encoding (it is now default in the
e
helper function in 5.6, so that this package works like before. If this package should, from now on, use double encoding by default I'm happy to revert the changes and fix the tests instead.