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

问题描述 投票:0回答:1

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

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

但是当我尝试使用表格时,出现此错误:https://flareapp.io/share/Bm0AY6Px#F29

但是,我的文件夹中存在LoginController类,所以我不明白是什么追加。

我已经写了这个命令:php artisan ui vue --auth而且我已经配置了数据库,唯一要做的更改是在用户表的迁移上。我的用户注册功能看起来像是:

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();
        });
    }

因此,如果您能帮助我并解释该身份验证系统的工作方式,对我真的很有帮助。

php eloquent laravel-authentication laravel-6.2
1个回答
0
投票

您需要跑步

php artisan make:auth

参考:https://laravel.com/docs/5.7/authentication

© www.soinside.com 2019 - 2024. All rights reserved.