table, function (Blueprint $table) { $table->increments('id')->comment('唯一标识')->unsigned(); $table->string('name', 25)->comment('管理员账号')->unique(); $table->integer('rid')->comment('对应角色id值')->unique(); $table->string('password')->comment('密码'); $table->dateTime('last_time')->comment('最后一次登录时间')->nullable(); $table->rememberToken(); $table->timestamps(); }); DB::statement("ALTER TABLE ".$this->table." comment'管理员信息表'"); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists($this->table); } }