increments('id'); $table->string("username")->nullable()->unique()->comment("用户名"); $table->string("name")->nullable()->comment("姓名"); $table->string("mobile")->nullable()->comment("手机号码"); $table->string("password")->nullable(); $table->string("remember_token")->nullable(); $table->string("avatar")->nullable()->comment("头像地址"); $table->integer("department_id")->nullable()->comment("部门ID"); $table->string("position")->nullable()->comment("职位"); $table->integer("sortnumber")->default(0)->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('admins'); } };