id(); $table->string('mini_openid')->comment('小程序openid'); $table->string('union_id')->nullable()->default('')->comment('微信唯一标识'); $table->string('nick_name')->nullable()->default('')->comment('微信昵称'); $table->string('avatar')->nullable()->default('')->comment('微信头像'); $table->string('phone')->nullable()->default('')->comment('手机号'); $table->timestamp('last_login_at')->nullable()->comment('上次登录时间'); $table->timestamp('last_login_ip')->nullable()->comment('上次登录ip'); $table->rememberToken(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('users'); } };