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
Just update to version 6.2.0 and use route:list
Thanks
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:
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
ConfirmPasswordControlleris 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/laravelrepo here:
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|
Most helpful comment
the
ConfirmPasswordControlleris 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/laravelrepo here:https://github.com/laravel/laravel/blob/master/app/Http/Controllers/Auth/ConfirmPasswordController.php