laravel-users表添加手机号
1.在脚本里添加
$table->string('mobile', 13);
最终:
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('mobile', 13);
$table->string('email')->unique();
$table->string('password', 60);
$table->rememberToken();
$table->timestamps();
});
这样添加的手机号字段mobile属性为“vachar(13)”