从Laravel 5.8升级到6.2后,ConfirmPasswordController不存在 [英] ConfirmPasswordController doesn't exist after upgrade from Laravel 5.8 to 6.2

查看:231
本文介绍了从Laravel 5.8升级到6.2后,ConfirmPasswordController不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Laravel 5.8中的一个项目,最近,我也将其软件包依赖版本升级到了Laravel 6.0.该项目运行良好.但是,今天,我通过composer update,更新了作曲器,并将其升级为Laravel 6.2.之后,我遇到了一个错误:

I am working on a project which is in Laravel 5.8, and recently, I upgraded it to Laravel 6.0 with its packages dependencies versions too. The project was running fine. But, today, I update the composer via composer update, and it upgraded to Laravel 6.2. After that, I faced an error:

App \ Http \ Controllers \ Auth \ ConfirmPasswordController不存在

App\Http\Controllers\Auth\ConfirmPasswordController does not exist

然后我安装了一个新的Laravel-6.2并通过php artisan ui vue,生成了基本脚手架,然后通过php artisan ui vue --auth.生成了login/registration脚手架.之后,我找到了ConfirmPasswordController.,然后在运行的项目中手动创建了ConfirmPasswordController并将所有代码从ConfirmPasswordController复制到我手动创建的ConfirmPasswordController.中,然后错误消失了.尽管我没有遇到与此相关的任何错误.但是,我对自己的方法感到困惑.我的做法正确吗?或者它有更好的方法来解决此问题.如果下次我遇到许多php artisan ui vue --auth问题,我会感到困惑.有人会建议我正确的流程,我应该怎么做?

Then I installed a fresh Laravel-6.2 and generated basic scaffolding via php artisan ui vue, then, generated login/registration scaffolding via php artisan ui vue --auth. After that, I found ConfirmPasswordController.Then, I manually created ConfirmPasswordController in my running project and copied all of the codes from ConfirmPasswordController to my manually created ConfirmPasswordController. Then, the error has gone. Although I did not face any error related to this. But, I am confused about my approach. Is it right way what I did? Or it has a better way to solve this problem. I am confused about, If I face many issues for php artisan ui vue --auth in the next time. Would someone suggest me the right process, what should I do?

推荐答案

从v6.0.0到v6.2.0,进行了以下添加和修改.

From v6.0.0 to v6.2.0 the following addition and modifications were made.

A app/Http/Controllers/Auth/ConfirmPasswordController.php
M app/Http/Controllers/Auth/ForgotPasswordController.php
M app/Http/Controllers/Auth/ResetPasswordController.php
M app/Http/Kernel.php
M config/auth.php
M resources/lang/en/validation.php

请确保这些更改在您的Laravel实例中,尽​​管听起来像现在这样.您可以看到v6.0.0与v6.2.0的差异这里.如果您需要查看v5.8.0在6.2.0中的更改,请转到

Make sure these changes are in your Laravel instance though it sounds like they now are. You can see the diff of v6.0.0 to v6.2.0 here. If you need to see v5.8.0 changes through 6.2.0, please go here.

这篇关于从Laravel 5.8升级到6.2后,ConfirmPasswordController不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆