daijiro of Techpit
3/7/2020 - 1:35 AM

2014_10_12_000000_create_users_table.php

<?php
// 略
class CreateUsersTable extends Migration
{
    // 略    
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->unique(); //-- この行を変更
            $table->string('email')->unique();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('password')->nullable(); //-- この行を変更
            $table->rememberToken();
            $table->timestamps();
        });
    }
    // 略
}