4

I update laravel from v 6.0 to v6.2 and after the finish, I try php artisan route:list

This error

enter image description here

story ks
  • 855
  • 1
  • 16
  • 39

5 Answers5

13

I had the same issue, i fixed it with the following solution:

  1. Create a empty file named "ConfirmPasswordController.php" in the folder App/Http/Controllers/Auth
  2. Go to https://github.com/laravel/laravel/tree/master/app/Http/Controllers/Auth en open the file named "ConfirmPasswordController.php"
  3. Copy all the file contents to your newly created file and save it.

This should fix the error.

Edit
The problem is, were updating the composer dependencies, but not the core application. But de composer dependencies expect you to update the core. They refer to files on the core application that not exists (because the application is not up-to-date).

See: How to update Laravel Application (not the composer dependencies)

Erik-Jan
  • 194
  • 8
3

This has been fixed. Just update to Laravel 6.4

LordZardeck
  • 7,953
  • 19
  • 62
  • 119
2

Step1. Create ConfirmPasswordController.php file in app/Http/Controllers/Auth/ path.

Step2. ConfirmPasswordController.php paste this content to ConfirmPasswordController.php file.

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

Added app/Http/Controllers/Auth/ConfirmPasswordController.php

Modified app/Http/Controllers/Auth/ForgotPasswordController.php

Modified app/Http/Controllers/Auth/ResetPasswordController.php

Modified app/Http/Kernel.php

Modified config/auth.php

Modified resources/lang/en/validation.php

You can see the diff of v6.0.0 to v6.2.0 here.

Community
  • 1
  • 1
Dilip Hirapara
  • 14,810
  • 3
  • 27
  • 49
  • A app/Http/Controllers/Auth/ConfirmPasswordController.php this file missing – story ks Oct 11 '19 at 09:43
  • if I need to update v6.0 to v6.2.How should I update it? , so now I just change "laravel/framework": "^6.2", in composer.json and run command composer update – story ks Oct 11 '19 at 09:48
0

Create ConfirmPasswordController.php manually and It's may be duplicate of - duplicate

sKhanm
  • 37
  • 3
0

1 ) Open file vender/laravel/framework/src/Illuminate/Routing/Router.php".

2 ) and comment these

    // $this->get('password/confirm', 'Auth\ConfirmPasswordController@showConfirmForm')->name('password.confirm');
    // $this->post('password/confirm', 'Auth\ConfirmPasswordController@confirm');
  • You should avoid making changes directly to the vendor folder as it will be overwritten in future updates. – Saulo M Nov 25 '19 at 23:20