Framework: Miss ConfirmPasswordController

Created on 9 Oct 2019  路  5Comments  路  Source: laravel/framework

  • Laravel Version: 6.2.0
  • PHP Version: 7.3.9

Description:

After update today, i'm getting the error:
ReflectionException::("Class App\Http\Controllers\Auth\ConfirmPasswordController does not exist")
//vendor/laravel/framework/src/Illuminate/Container/Container.php:804

I tink it's missing in PR #30214

Steps To Reproduce:

Just update to version 6.2.0 and use route:list

Thanks

Most helpful comment

the ConfirmPasswordController is a userland file, it does not live in the Framework repository. You'll need to manually add it to your project.

You can copy it from the laravel/laravel repo here:

https://github.com/laravel/laravel/blob/master/app/Http/Controllers/Auth/ConfirmPasswordController.php

All 5 comments

the ConfirmPasswordController is a userland file, it does not live in the Framework repository. You'll need to manually add it to your project.

You can copy it from the laravel/laravel repo here:

https://github.com/laravel/laravel/blob/master/app/Http/Controllers/Auth/ConfirmPasswordController.php

Thanks to your help...

_re:Edit: In case anyone ever runs across this awkwardly. https://github.com/laravel/ui/pull/36#issuecomment-541040799_ 馃憤 馃殌


_Edit: I did some more digging and found https://github.com/laravel/ui/pull/36#issuecomment-539921924. I'm sure my comment is now redundant and this is already on the radar._


Since this breaks applications following an update, there should at least be documentation under the upgrades section of the 6.x version.

I know with the move to v6, we've adopted Semantic Versioning and explicitly state that "minor and patch releases should never contain breaking changes." I think a PR to make this a opt-in is an nice workaround for a feature like this. What do you think about this sort of implementation, @driesvints?

As annoying as it may be, a patch version to fix compatibility should be applied to adhere to with Semantic Versioning.

sorry @jlaswell, im not following you. what happened in my repo that i needed to add this file?

the ConfirmPasswordController is a userland file, it does not live in the Framework repository. You'll need to manually add it to your project.

You can copy it from the laravel/laravel repo here:

https://github.com/laravel/laravel/blob/master/app/Http/Controllers/Auth/ConfirmPasswordController.php

What next?
still same error just creating the file. I tried composer autodump but same result:

$ php artisan route:list

Illuminate\Contracts\Container\BindingResolutionException : Target class [App\Http\Controllers\AuthConfirmPasswordController] does not exist.

at /opt/.../vendor/laravel/framework/src/Illuminate/Container/Container.php:806
802|
803| try {
804| $reflector = new ReflectionClass($concrete);
805| } catch (ReflectionException $e) {

806| throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
807| }
808|

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lzp819739483 picture lzp819739483  路  3Comments

fideloper picture fideloper  路  3Comments

Anahkiasen picture Anahkiasen  路  3Comments

kerbylav picture kerbylav  路  3Comments

PhiloNL picture PhiloNL  路  3Comments