关于ID自动排序!新手求救!
想不清楚是那边出了问题,我有在 ID设置自动编号,
但是删除之后,在新增其他资料 ID编号排序就会从旧的开始排序。
Migrate
Schema::create(‘users’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->string(‘name’);
$table->string(‘email’)->unique();
$table->timestamp(‘email_verified_at’)->nullable();
$table->string(‘password’);
$table->rememberToken();
$table->timestamps();
});
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: