9

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 does not exist

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?

Karl Hill
  • 12,937
  • 5
  • 58
  • 95
Rashed Hasan
  • 3,721
  • 11
  • 40
  • 82
  • Try this command. Maybe this worked: composer dump-autoload – Hossein.Kiani Oct 09 '19 at 18:17
  • 1
    That controller was literally created yesterday, so its new and it lives in your application so composer doesn't touch any of that .. there is also a middleware to go with that and a config key added – lagbox Oct 09 '19 at 18:20
  • 1
    I did. I solved my problem for this error. But afraid about next. The process I described above is the right way to do this or any better solution? This was my question. – Rashed Hasan Oct 09 '19 at 18:20
  • That controller comes with laravel/laravel by default, now. So no command needed for it to exist ... unfortunately there are no notes on the documentation about version updates inside 6.x so not sure where you will have to look for that type of information moving forward – lagbox Oct 09 '19 at 18:25
  • @lagbox yes, I searched for the correct way for this. But, Not found! And I am afraid about my project, this is because my project is larger. Is there any problem for the previous authentication process with `php artisan ui vue --auth`? Althoug I did not face yet. – Rashed Hasan Oct 09 '19 at 18:30
  • there is no issue with that, it is just unrelated to the auth controllers. – lagbox Oct 09 '19 at 18:32

2 Answers2

3

Laravel made the following additions and modifications from versions v6.0.0 to v6.2.0.

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

Please 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.

Karl Hill
  • 12,937
  • 5
  • 58
  • 95