【发布时间】:2018-06-10 10:37:32
【问题描述】:
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('last_name')->nullable();
$table->string('phone_number')->nullable();
$table->text('Biography')->nullable();
$table->string('address')->nullable();
$table->string('photo')->nullable();
$table->string('facebook_link')->nullable();
$table->string('twitter_link')->nullable();
$table->string('youtube_link')->nullable();
$table->string('email')->unique();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
我想将用户更改为另一个名称,但不能,并且迁移不起作用。
【问题讨论】:
-
你的意思是什么我想把用户改成另一个名字