要移除 timestamps
、nullableTimestamps
或 softDeletes
字段类型,您可以使用以下方法:
|命令|功能描述|
|------------|
|$table->dropTimestamps();|移除 created_at 和 updated_at 字段|
|$table->dropSoftDeletes();|移除 deleted_at 字段|
要移除 timestamps
、nullableTimestamps
或 softDeletes
字段类型,您可以使用以下方法:
|命令|功能描述|
|------------|
|$table->dropTimestamps();|移除 created_at 和 updated_at 字段|
|$table->dropSoftDeletes();|移除 deleted_at 字段|