Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Laravel 6.2身份验证错误:LoginController不存在_Php_Eloquent_Laravel Authentication_Laravel 6.2 - Fatal编程技术网

Php Laravel 6.2身份验证错误:LoginController不存在

Php Laravel 6.2身份验证错误:LoginController不存在,php,eloquent,laravel-authentication,laravel-6.2,Php,Eloquent,Laravel Authentication,Laravel 6.2,我是laravel框架的初学者,所以目前我不太了解laravel中的很多内容 因此,我尝试创建一个简单的身份验证系统 但是当我尝试使用表单时,我有一个错误: Illuminate\Contracts\Container\BindingResolutionException Target class [Application\Http\Controllers\Auth\LoginController] does not exist. (您可以在此处获得完整错误:) 但是,LoginControl

我是laravel框架的初学者,所以目前我不太了解laravel中的很多内容

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

但是当我尝试使用表单时,我有一个错误:

Illuminate\Contracts\Container\BindingResolutionException
Target class [Application\Http\Controllers\Auth\LoginController] does not exist.
(您可以在此处获得完整错误:)

但是,LoginController类存在于我的文件夹中,因此我不了解追加的内容

我已经编写了以下命令:
php artisan ui vue--auth
我已经配置了我的数据库,我所做的唯一更改是迁移用户表。 我的用户启动功能如下所示:

public function up()
{
Schema::create('users',函数(Blueprint$表){
$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('adrese');
$table->rememberToken();
$table->timestamps();
});
}
为了解决这个问题,我尝试:

  • 使用auth标志重新安装projet,如下所示:
    composer create project——首选dist-laravel/laravel-myprojet——auth
  • 初始化节点是这样的:
    npm安装
    npm运行开发
  • 不要更改用户迁移文件
所以,如果你能帮我解释一下这个认证系统是如何工作的,那对我真的很有帮助

  • 编写器需要laravel/ui

  • php artisan ui vue
    php artisan ui react


  • 什么是“此错误”?是否涉及任何错误消息?请将其添加到您的问题中。我发送的链接是我的错误回复。直接导出并与flareapp共享。请通过编辑将所有错误消息添加到您的问题中。还要解释你试图解决的问题。OK,它已更新^^