我正在使用laravel auth。我更改了电子邮件列。我收到了这个错误:
SQLSTATE [42S22]:未找到列:1054未知列'电子邮件' 'where子句'(SQL:从
password_resets
中删除
我已将所有电子邮件字段更改为ResetsPasswords和SendsPasswordResetEmails文件以及视图中的userEmail。我是laravel的新人,所以我不明白它是如何运作的。
这是我的password_resets表
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePasswordResetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('password_resets', function (Blueprint $table) {
$table->string('userEmail', 50)->index();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('password_resets');
}
}