Help us understand the problem. What is going on with this article?

PHP-【Laravel】 Target class [App\Http\Controllers\Auth\ConfirmPasswordController] does not exist.エラー対策

Laravelのプロジェクトは6.0 から6.2にアップグレードした後、php artisan route:listを実行した時に起きた問題です。

現象

Laravel6.0 から6.2にアップグレードしてからphp artisan route:listをすると、下図のようにTarget class [App\Http\Controllers\Auth\ConfirmPasswordController] does not exist.エラーが出ました。
image.png

原因

laravelプロジェクトのApp\Http\Controllers\AuthフォルダーにConfirmPasswordController.phpがないのは直接原因です。6.0->6.2の差分で分かったのは、laravel6.0のコアアプリケーションにこのファイルがなかったようです。composer updateはlaravel frameworkをバージョンアップしただけで、コアの部分はアップグレードしなかったため、エラーが起きたのです。

解決方法

laravelプロジェクトからConfirmPasswordController.phpをダウンロードして、自分のApp\Http\Controllers\Authに入れます。

以上です。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away