Laravel 6.2 身份验证错误:登录控制器不存在



我是 laravel 框架的初学者,所以我暂时不了解 laravel 中的很多东西。

因此,我尝试创建一个简单的身份验证系统。

但是当我尝试使用该表单时,我遇到了此错误:

IlluminateContractsContainerBindingResolutionException
Target class [ApplicationHttpControllersAuthLoginController] does not exist.

(你可以在这里得到完整的错误:https://flareapp.io/share/Bm0AY6Px#F29(

但是,LoginController 类存在于我的文件夹中,所以我不明白附加的内容。

我已经写了这个命令:php artisan ui vue --auth我已经配置了我的数据库,我所做的唯一更改是在用户表的迁移上。 我的用户up函数看起来像这样:

public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->string('nom');
$table->string('prenom');
$table->string('telephone',10);
$table->string('adresse');
$table->rememberToken();
$table->timestamps();
});
}

为了解决这个问题,我尝试:

  • 重新安装带有身份验证标志的项目,如下所示:composer create-project --prefer-dist laravel/laravel myprojet --auth
  • 像这样初始化节点js:npm installnpm run dev
  • 不要更改用户迁移文件。

因此,如果您能帮助我并解释这个身份验证系统的工作原理,这将对我非常有帮助。

  1. 作曲家需要LaRavel/UI

  2. php artisan ui vuephp artisan ui react

https://readouble.com/laravel/6.x/en/frontend.html

最新更新