-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Addition of ConfirmPasswordController.php breaking change #30382
Comments
Where are you getting this error message? We're on Laravel 6.3, upgraded from 5.8 (all the way back to 5.4 actually) and although we don't have this controller, we don't get this error anywhere |
Since the 6.3 release I’ve only seen 2-3 devs mention problems. Has to be something else going on. The repo would be flooded with issues if this was a problem. |
Okay I think I see the issue, our app doesn't use the Auth::routes(); helper as we have our own auth logic. If you use Auth::routes() I do get this error. That's the extra step. Edit: The method defaults to adding the route for the confirmPassword controller so yes this would be a breaking change for anyone who uses the Auth::routes() helper and upgrades from a previous version https://github.com/laravel/framework/blob/6.x/src/Illuminate/Routing/Router.php#L1167 |
Interesting. If true, it’s something that should not have been added if Laravel is serious about semver. |
Hi !
in my web.php route file. |
Let's get rid of |
That might be an option long term but it would be a breaking change and 6.x is an LTS version of laravel, so it wouldn't help solve the core issue. There either needs to be a fallback in the app or a conditional around registering those routes if the file doesn't exist |
yah, I'd probably be tarred and feathered if I actually made that suggestion. wrapping in conditionals is tricky, because are you just checking to see if the controllers exist? or are you also checking to make sure the methods exist on those controller? and all that logic seems like a waste. |
Actually this only breaks the route:list command and the newly introduced endpoints as far as I know, I tried route:cache, it's not affected. That being I don't think this feature should have been added enabled by default, actually I think this should be disabled by default, just like the verify option. Sadly, I think disabling it after a week would probably cause more breaks in production instances than leaving it. This definitely should be considered next time. |
I'm a glutton for punishment.... #30388 |
While I could live with that I see virtually 0% chance for that getting merged. I sent a pull request to alleviate these breaks. |
Description:
This issue involving missing ConfirmPasswordController occurs when upgrading from Laravel 6.0 to 6.2. It's not a backwards-compatible new feature, and requires adding new files to the application codebase to avoid errors.
Doesn't this break the idea of semantic versioning? Regardless, I am unable to find an 'upgrade guide' for 6.0 to 6.1 or 6.1 to 6.2 - maybe I'm missing them? Guides like this shouldn't be as necessary for a project that respects semver, but if changes like this are occurring they become crucial.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: