yasin 发布的文章

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)”

- 阅读剩余部分 -

Welcome, please leave a message if you have any questions.